@lilydesignsystem/themes 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +64 -0
- package/dist/abyss.css +3174 -0
- package/dist/acid.css +3174 -0
- package/dist/adobe-spectrum.css +3174 -0
- package/dist/aqua.css +3174 -0
- package/dist/autumn.css +3174 -0
- package/dist/black.css +3174 -0
- package/dist/bumblebee.css +3174 -0
- package/dist/business.css +3174 -0
- package/dist/caramellatte.css +3174 -0
- package/dist/cmyk.css +3174 -0
- package/dist/coffee.css +3174 -0
- package/dist/corporate.css +3174 -0
- package/dist/cupcake.css +3174 -0
- package/dist/cyberpunk.css +3174 -0
- package/dist/dark.css +3175 -0
- package/dist/dim.css +3174 -0
- package/dist/dracula.css +3174 -0
- package/dist/emerald.css +3174 -0
- package/dist/fantasy.css +3174 -0
- package/dist/forest.css +3174 -0
- package/dist/garden.css +3174 -0
- package/dist/halloween.css +3174 -0
- package/dist/lemonade.css +3174 -0
- package/dist/light.css +3174 -0
- package/dist/lofi.css +3174 -0
- package/dist/luxury.css +3174 -0
- package/dist/mozilla-protocol.css +3174 -0
- package/dist/night.css +3174 -0
- package/dist/nord.css +3174 -0
- package/dist/pastel.css +3174 -0
- package/dist/retro.css +3174 -0
- package/dist/silk.css +3174 -0
- package/dist/sunset.css +3174 -0
- package/dist/synthwave.css +3174 -0
- package/dist/united-kingdom-government-digital-service.css +3179 -0
- package/dist/united-kingdom-national-health-service-england-for-patients.css +3215 -0
- package/dist/united-kingdom-national-health-service-england-for-practitioners.css +3308 -0
- package/dist/united-kingdom-national-health-service-scotland-for-patients.css +3318 -0
- package/dist/united-kingdom-national-health-service-scotland-for-practitioners.css +3404 -0
- package/dist/united-kingdom-national-health-service-wales-for-patients.css +4211 -0
- package/dist/united-kingdom-national-health-service-wales-for-practitioners.css +4387 -0
- package/dist/united-states-web-design-system.css +3175 -0
- package/dist/valentine.css +3175 -0
- package/dist/winter.css +3175 -0
- package/dist/wireframe.css +3175 -0
- package/index.md +95 -0
- package/package.json +43 -0
package/index.md
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# Lily Design System™ — Themes
|
|
2
|
+
|
|
3
|
+
`@lilydesignsystem/themes` packages the 45 reference theme stylesheets
|
|
4
|
+
that live at the canonical monorepo root
|
|
5
|
+
([`themes/`](https://github.com/LilyDesignSystem/lily-design-system/tree/main/themes))
|
|
6
|
+
as an installable npm package, so a consumer who wants Lily's default
|
|
7
|
+
look does not have to clone the monorepo or hand-copy CSS files.
|
|
8
|
+
|
|
9
|
+
Each stylesheet targets the Lily headless components' kebab-case class
|
|
10
|
+
hooks (see [css-style-sheet-template.css](https://github.com/LilyDesignSystem/lily-design-system/blob/main/css-style-sheet-template.css))
|
|
11
|
+
directly — no build step, no CSS framework, no JavaScript runtime.
|
|
12
|
+
This package is CSS only: 45 files, one per theme, unmodified from the
|
|
13
|
+
canonical source.
|
|
14
|
+
|
|
15
|
+
## Install
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
npm install @lilydesignsystem/themes
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
**Static `<link>` (what the `theme-picker` helper does):**
|
|
24
|
+
|
|
25
|
+
```html
|
|
26
|
+
<link rel="stylesheet" href="/node_modules/@lilydesignsystem/themes/light.css" data-lily-theme-picker>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
`theme-picker` swaps this `href` at runtime and sets `data-theme` on
|
|
30
|
+
the document root — see
|
|
31
|
+
[AGENTS/helpers.md](https://github.com/LilyDesignSystem/lily-design-system/blob/main/AGENTS/helpers.md)
|
|
32
|
+
and the [`theme-picker` package](https://www.npmjs.com/package/@lilydesignsystem/svelte-theme-picker)
|
|
33
|
+
for each framework.
|
|
34
|
+
|
|
35
|
+
**Bundler CSS import (Vite, webpack, etc.):**
|
|
36
|
+
|
|
37
|
+
```js
|
|
38
|
+
import "@lilydesignsystem/themes/light.css";
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
**Copy into your own static assets** (the pattern every Lily example
|
|
42
|
+
app uses, via `bin/sync`):
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
cp node_modules/@lilydesignsystem/themes/*.css public/themes/
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## The 45 themes
|
|
49
|
+
|
|
50
|
+
Alphabetical, with the UK/US government themes grouped at the end
|
|
51
|
+
(matching `picker-bar`'s default ordering):
|
|
52
|
+
|
|
53
|
+
abyss, acid, adobe-spectrum, aqua, autumn, black, bumblebee, business,
|
|
54
|
+
caramellatte, cmyk, coffee, corporate, cupcake, cyberpunk, dark, dim,
|
|
55
|
+
dracula, emerald, fantasy, forest, garden, halloween, lemonade, light,
|
|
56
|
+
lofi, luxury, mozilla-protocol, night, nord, pastel, retro, silk,
|
|
57
|
+
sunset, synthwave, valentine, winter, wireframe,
|
|
58
|
+
united-kingdom-government-digital-service,
|
|
59
|
+
united-kingdom-national-health-service-england-for-patients,
|
|
60
|
+
united-kingdom-national-health-service-england-for-practitioners,
|
|
61
|
+
united-kingdom-national-health-service-scotland-for-patients,
|
|
62
|
+
united-kingdom-national-health-service-scotland-for-practitioners,
|
|
63
|
+
united-kingdom-national-health-service-wales-for-patients,
|
|
64
|
+
united-kingdom-national-health-service-wales-for-practitioners,
|
|
65
|
+
united-states-web-design-system.
|
|
66
|
+
|
|
67
|
+
Each file name is the slug `theme-picker` sets on
|
|
68
|
+
`:root[data-theme="{slug}"]`.
|
|
69
|
+
|
|
70
|
+
## Conventions
|
|
71
|
+
|
|
72
|
+
- Every selector is `:where(...)` or lives under `@layer lily { ... }`
|
|
73
|
+
(zero specificity), so consumer CSS always wins the cascade — see
|
|
74
|
+
[AGENTS/theme.md](https://github.com/LilyDesignSystem/lily-design-system/blob/main/AGENTS/theme.md).
|
|
75
|
+
Verified by `bin/check-theme`.
|
|
76
|
+
- Every class targeted is a real catalog component slug or a
|
|
77
|
+
documented helper hook (`theme-picker`, `locale-picker`,
|
|
78
|
+
`text-size-picker`, `motion-picker`, `share-picker`,
|
|
79
|
+
`date-time-picker`, `picker-bar`) — no invented hooks.
|
|
80
|
+
- Nothing here ships JavaScript, fonts, icons, or imagery.
|
|
81
|
+
|
|
82
|
+
## License
|
|
83
|
+
|
|
84
|
+
Free open source, under your choice of MIT, Apache-2.0, GPL-2.0-only,
|
|
85
|
+
GPL-3.0-only, or BSD-3-Clause. See [LICENSE.md](LICENSE.md).
|
|
86
|
+
|
|
87
|
+
## Contributing
|
|
88
|
+
|
|
89
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md). Work happens in the canonical
|
|
90
|
+
[monorepo](https://github.com/LilyDesignSystem/lily-design-system);
|
|
91
|
+
`themes/` there is the single source of truth this package packages.
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
Lily™ and Lily Design System™ are trademarks.
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lilydesignsystem/themes",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"engines": {
|
|
5
|
+
"node": "=26"
|
|
6
|
+
},
|
|
7
|
+
"description": "Lily Design System reference theme stylesheets: 45 ready-to-use CSS themes (NHS England/Scotland/Wales, GOV.UK GDS, USWDS, Adobe Spectrum, Mozilla Protocol, and general-purpose themes) targeting the Lily kebab-case class hooks.",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"index.md",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
"./*.css": "./dist/*.css",
|
|
16
|
+
"./package.json": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "node build.js",
|
|
20
|
+
"prepublishOnly": "npm run build"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"lily",
|
|
24
|
+
"design",
|
|
25
|
+
"system",
|
|
26
|
+
"theme",
|
|
27
|
+
"css",
|
|
28
|
+
"nhs",
|
|
29
|
+
"gov-uk",
|
|
30
|
+
"uswds",
|
|
31
|
+
"design-tokens"
|
|
32
|
+
],
|
|
33
|
+
"author": "Joel Parker Henderson <joel@joelparkerhenderson.com>",
|
|
34
|
+
"license": "MIT OR Apache-2.0 OR GPL-2.0-only OR GPL-3.0-only OR BSD-3-Clause",
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/LilyDesignSystem/lily-design-system-themes.git"
|
|
38
|
+
},
|
|
39
|
+
"homepage": "https://lilydesignsystem.com/",
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/LilyDesignSystem/lily-design-system/issues"
|
|
42
|
+
}
|
|
43
|
+
}
|