One theme, linked by every Nixosoft app
Sand paper and charcoal ink, one sage accent, soft depth and sans type, in light and dark. Link these files instead of copying them, and every app changes together when the system changes.
Two lines in the <head>
The script goes first and without defer, so a Dark choice is on the page before the first paint.
<script src="https://cdn.nixosoft.com/nixosoft-ai-designs/1/theme.js"></script> <link rel="stylesheet" href="https://cdn.nixosoft.com/nixosoft-ai-designs/1/nixosoft-ai-designs.css">
Then put <div data-nx-theme-switch></div> where the Light / Dark / Same as system choice belongs. On openc.hiradnikoo.com the choice is shared by every port.
| File | What it is |
|---|---|
nixosoft-ai-designs.css | The full theme: tokens, fonts and every component. |
nixosoft-ai-designs-dark-blue.css | The Dark blue variant, for control rooms and monitoring walls. Dark only, so it needs no theme.js. |
tokens.css | Only the colours, type, shapes and fonts, for an app that keeps its own components (antd, MUI, Tailwind). |
theme.js | The Light / Dark / Same as system switch. NixosoftTheme.set('dark'), .get(), .onChange(fn). |
icons.css | Material Symbols Rounded, as Dupligence uses them: <span class="ms">settings</span>. About 5 MB, so link it only where icons are used. |
Follow the major, or pin one
/1/ always serves the newest 1.x and is cached for ten minutes. Use it on our own apps, which should change together.
/1.0.1/ never changes and is cached for a year. Pin it, with the hashes in manifest.json, where a page must not change under you:
<link rel="stylesheet" href="https://cdn.nixosoft.com/nixosoft-ai-designs/1.0.1/nixosoft-ai-designs.css"
integrity="sha384-…" crossorigin="anonymous">
Write Design: Nixosoft-AI-Designs in the app's PROJECT.md, and run the checker on the app's own CSS in its tests:
node design-systems/nixosoft-ai-designs/checks/design-check.mjs <app css or html>
The rules, the colours and their measured contrast are in design-systems/nixosoft-ai-designs/README.md.