https://github.com/shgysk8zer0/jss
Simple JavaScript StyleSheets & Palettes
https://github.com/shgysk8zer0/jss
constructable-stylesheet css-in-js css-modules jss web-components
Last synced: 8 months ago
JSON representation
Simple JavaScript StyleSheets & Palettes
- Host: GitHub
- URL: https://github.com/shgysk8zer0/jss
- Owner: shgysk8zer0
- License: mit
- Created: 2023-07-05T20:02:18.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2025-04-03T16:23:29.000Z (about 1 year ago)
- Last Synced: 2025-04-12T02:37:57.247Z (about 1 year ago)
- Topics: constructable-stylesheet, css-in-js, css-modules, jss, web-components
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@shgysk8zer0/jss
- Size: 143 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# @shgysk8zer0/jss
Simple JavaScript StyleSheets & Palettes
[](https://github.com/shgysk8zer0/jss/actions/workflows/codeql-analysis.yml)


[](https://github.com/shgysk8zer0/jss/blob/master/LICENSE)
[](https://github.com/shgysk8zer0/jss/commits/master)
[](https://github.com/shgysk8zer0/jss/releases)
[](https://github.com/sponsors/shgysk8zer0)
[](https://www.npmjs.com/package/@shgysk8zer0/jss)


[](https://www.npmjs.com/package/@shgysk8zer0/jss)
[](https://github.com/shgysk8zer0)


[](https://twitter.com/shgysk8zer0)
[](https://liberapay.com/shgysk8zer0/donate "Donate using Liberapay")
- - -
- [Code of Conduct](./.github/CODE_OF_CONDUCT.md)
- [Contributing](./.github/CONTRIBUTING.md)
---
Best when used with [`@shgysk8zer0/jswaggersheets`](https://npmjs.com/package/@shgysk8zer0/jswaggersheets).
## Example
```js
import { createSheet } from '@shgysk8zer0/jswaggersheets/swagger.js';
import * as bootstrap from '@shgysk8zer0/jss/palette/bootstrap.js';
import { systemFonts } from '@shgysk8zer0/jss/system-fonts.js';
import { gnomeStyles } from '@shgysk8zer0/jss/gnome.js';
import { utility } from '@shgysk8zer0/jss/utility.js';
import { base } from '@shgysk8zer0/jss/base.js';
Promise.all([
createSheet(base),
createSheet(systemFonts),
createSheet(gnomeStyles),
createSheet(utility),
]).then(sheets => document.adoptedStyleSheets = sheets);
/* Maps to `--bs-red-200` */
document.querySelector('.nav').style.setProperty('background-color', bootstrap.red[1]);
```