Skip to content

Instantly share code, notes, and snippets.

View vnys's full-sized avatar

Victor Nystad vnys

View GitHub Profile
@vnys
vnys / 01-rules.md
Last active March 7, 2024 12:26
eds tokens 1.0 json design tokens rules
Title:  EDS Tokens naming rules
Status: Draft
Author: vnys
Date:   Nov 20 2022

EDS 2.0 token naming

@vnys
vnys / eds-ferie.txt
Created June 22, 2022 10:30
eds ferie 2022
+------------+-------+-------+-------+-------+-------+-------+-------+
| Uke | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
+------------+-------+-------+-------+-------+-------+-------+-------+
| Rebecca | ---XX | XXXXX | XXXXX | XXXXX | XXXXX | ----- | ----- |
+------------+-------+-------+-------+-------+-------+-------+-------+
| Lucas | ----- | --XXX | XXXXX | XXXXX | XXXXX | XXXXX | ----- |
+------------+-------+-------+-------+-------+-------+-------+-------+
| Bente | ----- | ---XX | XXXXX | XXXXX | XXX-- | ----- | ----- |
+------------+-------+-------+-------+-------+-------+-------+-------+
| Oddbjørn | ----- | ----- | ----- | ----- | XXXXX | XXXXX | XXXXX |
@vnys
vnys / tailwind-colors-as-css-variables.md
Created March 25, 2022 19:52 — forked from Merott/tailwind-colors-as-css-variables.md
Expose Tailwind colors as CSS custom properties (variables)

This is a simple Tailwind plugin to expose all of Tailwind's colors, including any custom ones, as custom css properties on the :root element.

There are a couple of main reasons this is helpful:

  • You can reference all of Tailwind's colors—including any custom ones you define—from handwritten CSS code.
  • You can define all of your colors within the Tailwind configuration, and access the final values programmatically, which isn't possible if you did it the other way around: referencing custom CSS variables (defined in CSS code) from your Tailwind config.

See the Tailwind Plugins for more info on plugins.

@vnys
vnys / chromeos-video.md
Last active December 19, 2021 12:50
Chromebook video editors
@vnys
vnys / coding-in-the-cloud-tabs.md
Last active October 22, 2021 10:38
Coding in the cloud

Coding in the ☁️

@vnys
vnys / agenda.md
Last active June 11, 2021 08:09
EnergyVision and EDS

Why do we use the EDS in Energy Vision

  • The EDS
  • Main problem
    • EDS is made for white backgrounds
    • Need components EDS don’t have

Contributions

  • Tokens

AutoHotkey.ahk

;-----------------------------------------
; Mac keyboard to Windows Key Mappings
;=========================================

; --------------------------------------------------------------
; NOTES
; --------------------------------------------------------------
; ! = ALT
@vnys
vnys / mac-setup-redis.md
Created September 30, 2020 09:31 — forked from tomysmile/mac-setup-redis.md
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis
@vnys
vnys / prelude.ts
Created August 14, 2020 11:15 — forked from reidev275/prelude.ts
//
// Prelude
// A zero dependency, one file drop in for faster Typescript development with fewer bugs
// through type safe, functional programming. Comments are inline with links to blog posts motiviating the use.
// alias for a function with arity 1
export type Fn<A, B> = (a: A) => B;
// alias for a function with arity 2
@vnys
vnys / star-wars-planets.html
Created June 8, 2020 19:52 — forked from richard-flosi/star-wars-planets.html
Web Component using Custom Element, Shadow DOM, fetch, async/await, and the Star Wars API
<html>
<head>
<script>
customElements.define("star-wars-planets", class extends HTMLElement {
constructor() {
super();
this.attachShadow({ mode: "open" });
}
static get observedAttributes() { return ["loading", "planets"]; }