Skip to content

Instantly share code, notes, and snippets.

@lonekorean
Last active October 14, 2018 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lonekorean/0d437b9d9e1927e86454cb81b91cd720 to your computer and use it in GitHub Desktop.
Save lonekorean/0d437b9d9e1927e86454cb81b91cd720 to your computer and use it in GitHub Desktop.
Custom properties for polka dots
CSS.registerProperty({
name: '--dot-spacing',
syntax: '<length>',
initialValue: '20px',
inherits: false
});
CSS.registerProperty({
name: '--dot-fade-offset',
syntax: '<percentage>',
initialValue: '0%',
inherits: false
});
CSS.registerProperty({
name: '--dot-color',
syntax: '<color>',
initialValue: '#fff',
inherits: false
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment