@roxyapi/ui 1.3.0 → 1.5.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/AGENTS.md +3 -1
- package/README.md +6 -0
- package/THEMING.md +30 -23
- package/components-catalog.json +1 -1
- package/dist/cdn/components/almanac-day.js +5 -3
- package/dist/cdn/components/angel-number-card.js +3 -3
- package/dist/cdn/components/angel-number-lookup.js +3 -3
- package/dist/cdn/components/arudha-padas.js +3 -3
- package/dist/cdn/components/ashtakavarga-grid.js +3 -3
- package/dist/cdn/components/aspects-table.js +3 -3
- package/dist/cdn/components/astrocartography-map.js +9 -9
- package/dist/cdn/components/bazi-chart.js +2 -2
- package/dist/cdn/components/bhav-chalit-table.js +3 -3
- package/dist/cdn/components/bhava-bala-table.js +2 -2
- package/dist/cdn/components/biorhythm-chart.js +3 -3
- package/dist/cdn/components/bodygraph.js +11 -11
- package/dist/cdn/components/chara-karakas.js +3 -3
- package/dist/cdn/components/choghadiya-grid.js +3 -3
- package/dist/cdn/components/compatibility-card.js +3 -3
- package/dist/cdn/components/compound-number.js +3 -3
- package/dist/cdn/components/crystal-card.js +2 -2
- package/dist/cdn/components/crystal-grid.js +2 -2
- package/dist/cdn/components/dasha-timeline.js +2 -2
- package/dist/cdn/components/data.js +2 -2
- package/dist/cdn/components/divisional-chart.js +54 -54
- package/dist/cdn/components/dosha-card.js +3 -3
- package/dist/cdn/components/dosha-constitution.js +2 -2
- package/dist/cdn/components/dream-card.js +2 -2
- package/dist/cdn/components/dream-search.js +3 -3
- package/dist/cdn/components/endpoint-form.js +3 -3
- package/dist/cdn/components/ephemeris-table.js +3 -3
- package/dist/cdn/components/fixed-stars.js +3 -3
- package/dist/cdn/components/flying-star-chart.js +3 -3
- package/dist/cdn/components/forecast-digest.js +3 -3
- package/dist/cdn/components/forecast-timeline.js +5 -3
- package/dist/cdn/components/gematria.js +3 -3
- package/dist/cdn/components/gochara-table.js +3 -3
- package/dist/cdn/components/guna-milan.js +2 -2
- package/dist/cdn/components/hd-connection.js +10 -10
- package/dist/cdn/components/hd-penta.js +18 -18
- package/dist/cdn/components/hd-type-card.js +3 -3
- package/dist/cdn/components/hd-variables.js +2 -2
- package/dist/cdn/components/heliacal-table.js +3 -3
- package/dist/cdn/components/hexagram.js +3 -3
- package/dist/cdn/components/hora-table.js +3 -3
- package/dist/cdn/components/horoscope-card.js +3 -3
- package/dist/cdn/components/kp-chart.js +3 -3
- package/dist/cdn/components/kp-finance-card.js +3 -3
- package/dist/cdn/components/kp-planets-table.js +3 -3
- package/dist/cdn/components/kp-ruling-planets.js +3 -3
- package/dist/cdn/components/kua-card.js +3 -3
- package/dist/cdn/components/local-space-compass.js +8 -8
- package/dist/cdn/components/location-search.js +3 -3
- package/dist/cdn/components/luck-pillars.js +2 -2
- package/dist/cdn/components/mayan-day-sign.js +3 -3
- package/dist/cdn/components/moon-phase.js +5 -3
- package/dist/cdn/components/nakshatra-card.js +2 -2
- package/dist/cdn/components/natal-chart.js +17 -17
- package/dist/cdn/components/numerology-card.js +3 -3
- package/dist/cdn/components/panchang-table.js +5 -3
- package/dist/cdn/components/positions-table.js +3 -3
- package/dist/cdn/components/profection-card.js +3 -3
- package/dist/cdn/components/reference-card.js +3 -3
- package/dist/cdn/components/relocation-wheel.js +18 -18
- package/dist/cdn/components/report.js +3 -3
- package/dist/cdn/components/shadbala-table.js +3 -3
- package/dist/cdn/components/synastry-chart.js +17 -17
- package/dist/cdn/components/tarot-card.js +2 -2
- package/dist/cdn/components/tarot-catalog.js +3 -3
- package/dist/cdn/components/tarot-spread.js +3 -3
- package/dist/cdn/components/transit-wheel.js +10 -10
- package/dist/cdn/components/transits-table.js +3 -3
- package/dist/cdn/components/upagraha-table.js +3 -3
- package/dist/cdn/components/vastu-mandala.js +8 -8
- package/dist/cdn/components/vedic-aspects.js +3 -3
- package/dist/cdn/components/vedic-daily.js +3 -3
- package/dist/cdn/components/vedic-kundli.js +55 -55
- package/dist/cdn/components/vedic-planets-table.js +3 -3
- package/dist/cdn/components/western-planets-table.js +3 -3
- package/dist/cdn/components/yoga-list.js +2 -2
- package/dist/cdn/components/zodiac-card.js +3 -3
- package/dist/cdn/locales/de.js +1 -1
- package/dist/cdn/locales/es.js +1 -1
- package/dist/cdn/locales/fr.js +1 -1
- package/dist/cdn/locales/hi.js +1 -1
- package/dist/cdn/locales/pt.js +1 -1
- package/dist/cdn/locales/ru.js +1 -1
- package/dist/cdn/locales/tr.js +1 -1
- package/dist/cdn/roxy-ui.js +115 -115
- package/dist/cdn/widgets.js +1 -1
- package/dist/charts.cjs +70 -67
- package/dist/charts.d.ts +4 -2
- package/dist/charts.js +70 -67
- package/dist/components/almanac-day.js +1 -1
- package/dist/components/angel-number-card.js +1 -1
- package/dist/components/angel-number-lookup.js +1 -1
- package/dist/components/arudha-padas.js +1 -1
- package/dist/components/ashtakavarga-grid.js +1 -1
- package/dist/components/aspects-table.js +1 -1
- package/dist/components/astrocartography-map.d.ts +2 -1
- package/dist/components/astrocartography-map.js +7 -7
- package/dist/components/bazi-chart.js +1 -1
- package/dist/components/bhav-chalit-table.js +1 -1
- package/dist/components/bhava-bala-table.js +1 -1
- package/dist/components/biorhythm-chart.js +1 -1
- package/dist/components/bodygraph.js +8 -8
- package/dist/components/chara-karakas.js +1 -1
- package/dist/components/choghadiya-grid.js +1 -1
- package/dist/components/compatibility-card.js +1 -1
- package/dist/components/compound-number.js +1 -1
- package/dist/components/crystal-card.js +1 -1
- package/dist/components/crystal-grid.js +1 -1
- package/dist/components/dasha-timeline.js +1 -1
- package/dist/components/data.js +1 -1
- package/dist/components/divisional-chart.js +44 -44
- package/dist/components/dosha-card.js +1 -1
- package/dist/components/dosha-constitution.js +1 -1
- package/dist/components/dream-card.js +1 -1
- package/dist/components/dream-search.js +1 -1
- package/dist/components/endpoint-form.js +1 -1
- package/dist/components/ephemeris-table.js +1 -1
- package/dist/components/fixed-stars.js +1 -1
- package/dist/components/flying-star-chart.js +1 -1
- package/dist/components/forecast-digest.js +1 -1
- package/dist/components/forecast-timeline.d.ts +2 -0
- package/dist/components/forecast-timeline.js +1 -1
- package/dist/components/gematria.js +1 -1
- package/dist/components/gochara-table.js +1 -1
- package/dist/components/guna-milan.js +1 -1
- package/dist/components/hd-connection.js +9 -9
- package/dist/components/hd-penta.js +13 -13
- package/dist/components/hd-type-card.js +1 -1
- package/dist/components/hd-variables.js +1 -1
- package/dist/components/heliacal-table.js +1 -1
- package/dist/components/hexagram.js +1 -1
- package/dist/components/hora-table.js +1 -1
- package/dist/components/horoscope-card.js +1 -1
- package/dist/components/kp-chart.js +1 -1
- package/dist/components/kp-finance-card.js +1 -1
- package/dist/components/kp-planets-table.js +1 -1
- package/dist/components/kp-ruling-planets.js +1 -1
- package/dist/components/kua-card.js +1 -1
- package/dist/components/local-space-compass.js +5 -5
- package/dist/components/location-search.js +1 -1
- package/dist/components/luck-pillars.js +1 -1
- package/dist/components/mayan-day-sign.js +1 -1
- package/dist/components/moon-phase.d.ts +3 -1
- package/dist/components/moon-phase.js +1 -1
- package/dist/components/nakshatra-card.js +1 -1
- package/dist/components/natal-chart.js +16 -16
- package/dist/components/numerology-card.js +1 -1
- package/dist/components/panchang-table.js +1 -1
- package/dist/components/positions-table.js +1 -1
- package/dist/components/profection-card.js +1 -1
- package/dist/components/reference-card.js +1 -1
- package/dist/components/relocation-wheel.js +15 -15
- package/dist/components/report.js +1 -1
- package/dist/components/shadbala-table.js +1 -1
- package/dist/components/synastry-chart.js +15 -15
- package/dist/components/tarot-card.js +1 -1
- package/dist/components/tarot-catalog.js +1 -1
- package/dist/components/tarot-spread.js +1 -1
- package/dist/components/transit-wheel.js +7 -7
- package/dist/components/transits-table.js +1 -1
- package/dist/components/upagraha-table.js +1 -1
- package/dist/components/vastu-mandala.js +4 -4
- package/dist/components/vedic-aspects.js +1 -1
- package/dist/components/vedic-daily.js +1 -1
- package/dist/components/vedic-kundli.js +42 -42
- package/dist/components/vedic-planets-table.js +1 -1
- package/dist/components/western-planets-table.js +1 -1
- package/dist/components/yoga-list.js +1 -1
- package/dist/components/zodiac-card.js +1 -1
- package/dist/generated/symbol-font.d.ts +14 -0
- package/dist/i18n/chrome-strings.d.ts +1 -1
- package/dist/i18n/localized-element.d.ts +3 -1
- package/dist/index.cjs +121 -121
- package/dist/index.js +107 -107
- package/dist/locales/de.js +1 -1
- package/dist/locales/es.js +1 -1
- package/dist/locales/fr.js +1 -1
- package/dist/locales/hi.js +1 -1
- package/dist/locales/pt.js +1 -1
- package/dist/locales/ru.js +1 -1
- package/dist/locales/tr.js +1 -1
- package/dist/styles/charts/moon.css +1 -0
- package/dist/styles/charts/natal-wheel.css +1 -1
- package/dist/styles/charts/synastry-wheel.css +1 -1
- package/dist/styles/fonts/symbols/OFL.txt +94 -0
- package/dist/styles/fonts/symbols/noto-sans-math.woff2 +0 -0
- package/dist/styles/fonts/symbols/noto-sans-symbols-2.woff2 +0 -0
- package/dist/styles/fonts/symbols/noto-sans-symbols.woff2 +0 -0
- package/dist/styles/fonts/symbols/noto-sans.woff2 +0 -0
- package/dist/styles/fonts/symbols.css +1 -0
- package/dist/styles/fonts.d.ts +11 -2
- package/dist/styles/tokens-css.d.ts +1 -1
- package/dist/styles/tokens.css +1 -1
- package/dist/tokens/index.d.ts +10 -7
- package/dist/types/types.gen.d.ts +4 -0
- package/dist/utils/base-element.d.ts +3 -0
- package/dist/utils/base-styles.d.ts +1 -1
- package/dist/utils/brand.d.ts +3 -1
- package/dist/utils/chart-styles.d.ts +2 -0
- package/dist/utils/glyph.d.ts +5 -0
- package/dist/utils/interp-accordion.d.ts +2 -0
- package/dist/utils/moon-mark.d.ts +7 -0
- package/dist/utils/moon.d.ts +37 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -589,7 +589,9 @@ const { data } = await roxy.astrology.generateNatalChart({ body, throwOnError: t
|
|
|
589
589
|
const svg: string = natalWheelSvg(data, { lang: 'es' });
|
|
590
590
|
```
|
|
591
591
|
|
|
592
|
-
Paint it with `dist/styles/tokens.css` plus the chart sheet, `dist/styles/charts/{natal-wheel,synastry-wheel,kundli,bodygraph}.css` (subpath `@roxyapi/ui/styles/charts/*.css`). Import a locale only for a language other than English. The same subpath exports the font pairs as data: `ROXY_FONTS` (keys as in `fonts[]`) and `fontFaces(key)`.
|
|
592
|
+
Paint it with `dist/styles/tokens.css` plus the chart sheet, `dist/styles/charts/{natal-wheel,synastry-wheel,kundli,bodygraph,moon}.css` (subpath `@roxyapi/ui/styles/charts/*.css`). Import a locale only for a language other than English. The same subpath exports the font pairs as data: `ROXY_FONTS` (keys as in `fonts[]`) and `fontFaces(key)`; the Moon as `moonSvg({ illumination, waxing, hemisphere, eclipse, size, lang })` and `lunarDayMoon(n)` for a tithi or lunar day; and the symbol face every glyph draws in as `SYMBOL_FAMILY` and `symbolFontFaces()`.
|
|
593
|
+
|
|
594
|
+
Every glyph draws in the `Roxy Symbols` face. The CDN script loads it; an npm build imports `@roxyapi/ui/styles/fonts/symbols.css` once, beside `tokens.css`. `components-catalog.json` publishes it as `symbolFont` (`family`, `stylesheet`, `files`). On a server, `@roxyapi/ui/charts` gives the glyphs (`planetGlyph('Venus')`, `signGlyph('Gemini')`, `aspectSymbol`, `trigramGlyph`, `hexagramGlyph(n)`, each `undefined` for a name it does not know), `symbolFontFaces()` with `fontFaceCss(faces, base)` for the `@font-face` rules, `moonSvg` and `litPath(k, waxing)`, the lit outline of a unit disc. Components that draw the Moon take `hemisphere="south"` (React and Vue `hemisphere`, one-tag widget `data-hemisphere`).
|
|
593
595
|
|
|
594
596
|
## Localized responses
|
|
595
597
|
|
package/README.md
CHANGED
|
@@ -536,6 +536,10 @@ The paint is a stylesheet per chart, published beside the tokens: `styles/charts
|
|
|
536
536
|
|
|
537
537
|
The same path carries the published font pairs as data: `ROXY_FONTS` (keyed by the `fonts[]` keys in `components-catalog.json`, each with its `name` and its `sans` and `display` stacks) and `fontFaces(key)`, the files a pair is drawn with, so a server sets the type a page shows.
|
|
538
538
|
|
|
539
|
+
`moonSvg({ illumination, waxing, hemisphere, eclipse, size, lang })` draws the Moon every component shows, from its lit fraction (0 to 100): the lit side, earthshine, the maria and a lunar or solar eclipse, turned for the Southern Hemisphere with `hemisphere: 'south'`. `lunarDayMoon(n)` gives the Moon of a tithi or a lunar day. Paint it with `styles/charts/moon.css`, or take only the lit outline on the unit disc with `litPath(k, waxing)`.
|
|
540
|
+
|
|
541
|
+
Every planet, sign, aspect, trigram and hexagram glyph draws in `Roxy Symbols`, a symbol face that ships in this package. From the CDN script it loads by itself. In an npm build, import `@roxyapi/ui/styles/fonts/symbols.css` once, beside `tokens.css`; on a server, `symbolFontFaces()` lists its files, `fontFaceCss(faces, base)` writes the `@font-face` rules for them served under `base`, and `SYMBOL_FAMILY` names it. The glyphs themselves come from `planetGlyph`, `signGlyph`, `aspectSymbol`, `trigramGlyph` and `hexagramGlyph(n)`, each returning `undefined` for a name it does not know, plus `RETROGRADE_MARK`, `MUTUAL_MARK` and `BIRTHPLACE_MARK`.
|
|
542
|
+
|
|
539
543
|
## Most-used components per domain
|
|
540
544
|
|
|
541
545
|
The highest-demand components by domain, in the order you are most likely to ship them. Each pairing shows the SDK call that returns the response shape the component renders. Spec change in the API translates to typed change at the component boundary; the pairing below is derived from the live OpenAPI spec, not invented. Full catalog in the [Components](#components) table.
|
|
@@ -1031,6 +1035,8 @@ roxy-natal-chart {
|
|
|
1031
1035
|
|
|
1032
1036
|
Every component takes `brand-color`, `brand-accent` and `font` (`brandColor`, `brandAccent`, `font` in React and Vue), so a site sets its brand without CSS. The colours are `#rgb` or `#rrggbb`, and the accent re-derives its ink and focus ring in both modes. `font` is a `key` from `fonts[]` in `components-catalog.json`, which lists each pair with its stylesheet and files, and it overrides the theme preset's default pair. From the CDN script, the pair's stylesheet loads from the same place as the script. In an npm build, import `@roxyapi/ui/styles/fonts/{key}.css` once, the same way as `tokens.css`, or copy `dist/styles/fonts` to your own origin and link it. A value that does not validate is ignored.
|
|
1033
1037
|
|
|
1038
|
+
A component that draws the Moon (the moon phase card, the panchang, the almanac, the forecast timeline) takes `hemisphere="south"` to show it as the Southern Hemisphere sees it, turned half a circle; absent reads as north. React and Vue: `hemisphere`; the one-tag widget: `data-hemisphere`.
|
|
1039
|
+
|
|
1034
1040
|
```html
|
|
1035
1041
|
<roxy-natal-chart brand-color="#3e2a2c" brand-accent="#914955" font="fraunces-jost"></roxy-natal-chart>
|
|
1036
1042
|
```
|
package/THEMING.md
CHANGED
|
@@ -61,18 +61,19 @@ Set these and the rest follows. Dark mode reassigns the colour bases only. Set a
|
|
|
61
61
|
|
|
62
62
|
### Type, space, shape and motion bases
|
|
63
63
|
|
|
64
|
-
| Variable | Default
|
|
65
|
-
| ------------------------ |
|
|
66
|
-
| `--roxy-font` | `initial`
|
|
67
|
-
| `--roxy-font-sans` | `initial`
|
|
68
|
-
| `--roxy-font-display` | `var(--roxy-font-sans)`
|
|
69
|
-
| `--roxy-font-mono` | `ui-monospace, ...`
|
|
70
|
-
| `--roxy-
|
|
71
|
-
| `--roxy-text-
|
|
72
|
-
| `--roxy-
|
|
73
|
-
| `--roxy-
|
|
74
|
-
| `--roxy-
|
|
75
|
-
| `--roxy-motion-
|
|
64
|
+
| Variable | Default | Notes |
|
|
65
|
+
| ------------------------ | ------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
66
|
+
| `--roxy-font` | `initial` | A font pair `key` from `fonts[]`; each component sets both stacks from it and loads only that pair. A preset sets its default here |
|
|
67
|
+
| `--roxy-font-sans` | `initial` | Body text. Unset, so every component inherits the page font; set a family to choose one |
|
|
68
|
+
| `--roxy-font-display` | `var(--roxy-font-sans)` | Every heading and the form title. Follows the body font until set; one value restyles every heading |
|
|
69
|
+
| `--roxy-font-mono` | `ui-monospace, ...` | Numeric tables, code |
|
|
70
|
+
| `--roxy-font-symbol` | `"Roxy Symbols", ui-sans-serif, system-ui, sans-serif` | Every planet, sign, aspect, trigram and hexagram glyph and chart mark. The symbol face ships in this package and carries every glyph a component draws; set a family of your own to draw them in it |
|
|
71
|
+
| `--roxy-text-base` | `1rem` | Body size, the base of the type scale |
|
|
72
|
+
| `--roxy-text-scale` | `1.15` | The ratio between type steps |
|
|
73
|
+
| `--roxy-space-unit` | `0.25rem` | Every gap, padding and margin is a multiple of it |
|
|
74
|
+
| `--roxy-radius` | `6px` | Every corner derives from it |
|
|
75
|
+
| `--roxy-motion-duration` | `200ms` | Set to `0ms` to disable transitions and entry animations |
|
|
76
|
+
| `--roxy-motion-easing` | `cubic-bezier(0.4, 0, 0.2, 1)` | Standard ease |
|
|
76
77
|
|
|
77
78
|
`prefers-reduced-motion: reduce` always pins the duration to `0ms`.
|
|
78
79
|
|
|
@@ -93,16 +94,22 @@ Each one is computed from the bases above. You may still set any of them directl
|
|
|
93
94
|
|
|
94
95
|
### Colours
|
|
95
96
|
|
|
96
|
-
| Variable
|
|
97
|
-
|
|
|
98
|
-
| `--roxy-surface`
|
|
99
|
-
| `--roxy-primary`
|
|
100
|
-
| `--roxy-secondary`
|
|
101
|
-
| `--roxy-muted`
|
|
102
|
-
| `--roxy-border`
|
|
103
|
-
| `--roxy-accent-ink`
|
|
104
|
-
| `--roxy-ring`
|
|
105
|
-
| `--roxy-heat`
|
|
97
|
+
| Variable | Light default | Dark default | Used by |
|
|
98
|
+
| --------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
99
|
+
| `--roxy-surface` | `var(--roxy-bg)` | `var(--roxy-bg)` | The card a component paints. Flat by default; set it to lift the card off the page |
|
|
100
|
+
| `--roxy-primary` | `var(--roxy-fg)` | `var(--roxy-fg)` | Strong ink, and the neutral end of the planet colour scale |
|
|
101
|
+
| `--roxy-secondary` | `color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg))` | `color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg))` | Secondary ink: form labels, the generic renderer, chips, several chart strokes, the Metal element |
|
|
102
|
+
| `--roxy-muted` | `color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg))` | `color-mix(in oklab, var(--roxy-fg) 60%, var(--roxy-bg))` | Captions, small labels, table headings. 6.4 to 1 on the default card in light, 6.1 in dark |
|
|
103
|
+
| `--roxy-border` | `color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg))` | `color-mix(in oklab, var(--roxy-fg) 14%, var(--roxy-bg))` | Every hairline: card edge, table rule, wheel line |
|
|
104
|
+
| `--roxy-accent-ink` | `color-mix(in oklab, var(--roxy-accent) 70%, black)` | `var(--roxy-accent)` | Accent-coloured text and marks on the page. Override only to make accent TEXT a different shade from accent FILLS, and keep it legible on the page |
|
|
105
|
+
| `--roxy-ring` | `color-mix(in srgb, var(--roxy-accent) 40%, transparent)` | `color-mix(in srgb, var(--roxy-accent) 40%, transparent)` | Focus outlines |
|
|
106
|
+
| `--roxy-heat` | `var(--roxy-danger)` | `var(--roxy-danger)` | Intensity ramp for graded cells, mixed to transparency per tier so the text stays `--roxy-fg` |
|
|
107
|
+
| `--roxy-moon-lit` | `color-mix(in oklab, var(--roxy-accent) 6%, #f6eedf)` | `color-mix(in oklab, var(--roxy-accent) 6%, #f6eedf)` | The sunlit side of every Moon, touched by the accent |
|
|
108
|
+
| `--roxy-moon-shade` | `color-mix(in oklab, var(--roxy-fg) 78%, var(--roxy-bg))` | `color-mix(in oklab, var(--roxy-fg) 10%, var(--roxy-bg))` | The unlit side of the Moon and the disc of a solar eclipse |
|
|
109
|
+
| `--roxy-moon-mare` | `color-mix(in oklab, var(--roxy-moon-lit) 62%, var(--roxy-moon-shade))` | `color-mix(in oklab, var(--roxy-moon-lit) 62%, var(--roxy-moon-shade))` | The maria and Tycho on the lit side |
|
|
110
|
+
| `--roxy-moon-rim` | `color-mix(in oklab, var(--roxy-moon-shade) 70%, var(--roxy-fg))` | `color-mix(in oklab, var(--roxy-moon-shade) 70%, var(--roxy-fg))` | The fine edge of the disc |
|
|
111
|
+
| `--roxy-moon-eclipse` | `color-mix(in oklab, color-mix(in oklab, var(--roxy-danger) 55%, var(--roxy-warning)) 72%, var(--roxy-moon-shade))` | `color-mix(in oklab, color-mix(in oklab, var(--roxy-danger) 55%, var(--roxy-warning)) 72%, var(--roxy-moon-shade))` | The copper of a lunar eclipse, darkened toward the unlit side |
|
|
112
|
+
| `--roxy-moon-corona` | `color-mix(in oklab, var(--roxy-warning) 60%, var(--roxy-moon-lit))` | `color-mix(in oklab, var(--roxy-warning) 60%, var(--roxy-moon-lit))` | The ring around a solar eclipse |
|
|
106
113
|
|
|
107
114
|
Every status colour has a `-fg` partner: the ink for text on a tint of that status colour, derived from its own base, so re-pointing a status colour carries its text with it. Override a `-fg` only to break the ink away from its base.
|
|
108
115
|
|
|
@@ -212,7 +219,7 @@ Three optional attributes on every component set the brand without CSS. A value
|
|
|
212
219
|
<roxy-natal-chart brand-color="#3e2a2c" brand-accent="#914955" font="fraunces-jost"></roxy-natal-chart>
|
|
213
220
|
```
|
|
214
221
|
|
|
215
|
-
In an npm build, import `@roxyapi/ui/styles/fonts/{key}.css` once (or copy `dist/styles/fonts` to your origin), the same way as `tokens.css`; fonts never load from a host the page did not choose.
|
|
222
|
+
In an npm build, import `@roxyapi/ui/styles/fonts/{key}.css` once (or copy `dist/styles/fonts` to your origin), the same way as `tokens.css`; fonts never load from a host the page did not choose. The symbol face every glyph draws in is `@roxyapi/ui/styles/fonts/symbols.css`, imported the same way; from the CDN script it loads by itself.
|
|
216
223
|
|
|
217
224
|
On `<roxy-report>` the same three brand the document as well as the form, and `theme`, a `key` from `themes[]` in `components-catalog.json`, prints the document in that preset; link the same preset stylesheet ([Theme presets](#theme-presets)) and the form matches it.
|
|
218
225
|
|