https://dvcarrillo.com
I actually built a small sandbox page to test them all, and it’s public: www.dvcarrillo.com/sandbox
I actually built a small sandbox page to test them all, and it’s public: www.dvcarrillo.com/sandbox
Some even get their values from other variables (like colors), defined in theme.css.
Some even get their values from other variables (like colors), defined in theme.css.
But first: why use components at all?
But first: why use components at all?
Even though my portfolio doesn’t rely much on it, you’ll still find a few structured files:
Even though my portfolio doesn’t rely much on it, you’ll still find a few structured files:
For instance, home.css handles the homepage, while work.css covers the project pages. There's even a 404.css file for the Error 404 page 😁
For instance, home.css handles the homepage, while work.css covers the project pages. There's even a 404.css file for the Error 404 page 😁
- base.css → foundational styles (e.g. containers, typography).
- components.css → component styles (e.g. buttons, badges).
- reset.css → ensures consistency across browsers.
- theme.css → defines the color palette and visual tokens.
- base.css → foundational styles (e.g. containers, typography).
- components.css → component styles (e.g. buttons, badges).
- reset.css → ensures consistency across browsers.
- theme.css → defines the color palette and visual tokens.