Skip to content

OEvgeny/css-vars-traits-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Versatile Component Styling with CSS Variables

This is my take on using CSS variables to create versatile styling for web components. It uses three types of classes:

  • file-input: a component class that defines the basic structure and functionality of a file input element.

  • *-var: a trait class that provides variables with optional defaults along with necessary modifications for the css properties, such as colors, fonts, borders, etc.

  • primary, accent, thick ...: modifier classes that change the values of the variables provided by the trait class, allowing for different variations of the component

About

Versatile File Input Styling with CSS Variables

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published