OEvgeny / css-vars-traits-demo

Versatile File Input Styling with CSS Variables

Home Page:https://oevgeny.github.io/css-vars-traits-demo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://oevgeny.github.io/css-vars-traits-demo/


Languages

Language:CSS 68.4%Language:HTML 31.6%