CSS variables and components
tokens.css holds the custom properties of the three looks; poi.css adds the components this site is built from: the raised and sunken materials, the title strip, the status line, the corner marks.
- Name to type
- css
- Runs on
- Web
- Install
- From npm
- Files
- Machine 2 · Samaritan 2
Steps
npm install github:pseudoyu/poi-theme, then import "poi-theme/poi.css"; or link https://poi.pseudoyu.com/poi.css directly.
On <html>, data-appearance="light" or "dark" picks one of Machine's two looks, and data-theme="samaritan" picks Samaritan.
Good to know
- Use the variables, never a copied hex: the variables change with the look.
Where it has been checked
OnSystemState
Webpoi.pseudoyu.comThis site is built with it
v0.1.0Machine · classicMachine · darkSamaritanThis page as plain text · Generated from the port's own entryMIT