Style Kryon with the CSS package
The KSS package is now kryonlabs/css, a CSS subset. The catalog themes are converted to CSS, the unused KSS fixtures are gone, and the docs, website, DOM interaction test and site test name the CSS package. Also carries the EMCC lookup in mk/emcc.mk from a concurrent task.
This commit is contained in:
1 parent
d95a2d4ce7
commit
b9aed7589e
35 files changed
+398
-1239
No files matched your search
@@ -46,9 +46,9 @@ depend on Kryon: [Plot](https://github.com/kryonlabs/plot),
|
||||
(`session`, `tree`, `surface`, `paint_queue`, `style`, and the others listed
|
||||
in `ziran.toml`); see [writing a widget package](docs/API.md#widget-packages).
|
||||
|
||||
Style sheets are the separate [KSS](https://github.com/kryonlabs/kss)
|
||||
package: it parses and formats `.kss` text, installs the rules, and ships the
|
||||
classic, lightfield, and material style packs. Kryon keeps the rule table and
|
||||
Style sheets are the separate [CSS](https://github.com/kryonlabs/css)
|
||||
package: it parses and formats a subset of CSS, installs the rules, and ships
|
||||
the classic, lightfield, and material style packs. Kryon keeps the rule table and
|
||||
style resolution, so an app that builds its rules in code needs no parser.
|
||||
|
||||
The optional [Game2D](https://github.com/kryonlabs/game2d) Ziran package owns
|
||||
|
||||
@@ -31,7 +31,7 @@ li{margin:.25rem 0}
|
||||
<tr><td class="">Desktop</td><td class=""><code>src/backend/desktop_run.zi</code></td><td class="">Private Xvfb project test covers image capture, keyboard, UTF-8 text, and wheel input</td><td class="ok">✅ supported on the tested Linux host</td></tr>
|
||||
<tr><td class="">Raylib</td><td class=""><code>src/backend/raylib_run.zi</code></td><td class="">Private Xvfb project test covers image capture and input</td><td class="ok">✅ supported on the tested Linux host</td></tr>
|
||||
<tr><td class="">Web Canvas</td><td class=""><code>src/backend/canvas_run.zi</code></td><td class="">Headless Chromium checks Canvas2D pixels, clips, input, textures, fonts, lifecycle, WebAudio, and file behavior</td><td class="ok">✅ supported through Emscripten on the tested browser</td></tr>
|
||||
<tr><td class="">Web DOM</td><td class=""><code>src/backend/dom_run.zi</code></td><td class="">Headless Chromium checks incremental updates, native Unicode editing, reorder focus, KSS, responsive sizing and browser accessibility</td><td class="part">🧪 hybrid host with opt-in native CSS layout for document widgets</td></tr>
|
||||
<tr><td class="">Web DOM</td><td class=""><code>src/backend/dom_run.zi</code></td><td class="">Headless Chromium checks incremental updates, native Unicode editing, reorder focus, CSS styles, responsive sizing and browser accessibility</td><td class="part">🧪 hybrid host with opt-in native CSS layout for document widgets</td></tr>
|
||||
<tr><td class="">Android</td><td class="">app <code>src/main.zi</code> + <code>src/backend/android_run.zi</code></td><td class=""><code>tests/ziran_android_device_test.sh</code> checks the device text, lifecycle, and inset protocol with the Java side stubbed; a manual emulator run verifies install, rendering, touch, and back</td><td class="ok">✅ supported through NativeActivity with raylib OpenGL ES 2</td></tr>
|
||||
</table>
|
||||
<p>The desktop and raylib project tests run separately with <code>make desktop-project-test</code> and <code>make raylib-project-test</code>; they must use a private Xvfb display. CI runs both on every push in their own job. The Canvas2D and semantic DOM project tests run in <code>make test</code> and launch only private headless Chromium.</p>
|
||||
|
||||
@@ -24,7 +24,7 @@ for a target; it does not prove that every native host runs on that target.
|
||||
| Desktop | `src/backend/desktop_run.zi` | Private Xvfb project test covers image capture, keyboard, UTF-8 text, and wheel input | ✅ supported on the tested Linux host |
|
||||
| Raylib | `src/backend/raylib_run.zi` | Private Xvfb project test covers image capture and input | ✅ supported on the tested Linux host |
|
||||
| Web Canvas | `src/backend/canvas_run.zi` | Headless Chromium checks Canvas2D pixels, clips, input, textures, fonts, lifecycle, WebAudio, and file behavior | ✅ supported through Emscripten on the tested browser |
|
||||
| Web DOM | `src/backend/dom_run.zi` | Headless Chromium checks incremental updates, native Unicode editing, reorder focus, KSS, responsive sizing and browser accessibility | 🧪 hybrid host with opt-in native CSS layout for document widgets |
|
||||
| Web DOM | `src/backend/dom_run.zi` | Headless Chromium checks incremental updates, native Unicode editing, reorder focus, CSS styles, responsive sizing and browser accessibility | 🧪 hybrid host with opt-in native CSS layout for document widgets |
|
||||
| Android | app `src/main.zi` + `src/backend/android_run.zi` | `tests/ziran_android_device_test.sh` checks the device text, lifecycle, and inset protocol with the Java side stubbed; a manual emulator run verifies install, rendering, touch, and back | ✅ supported through NativeActivity with raylib OpenGL ES 2 |
|
||||
|
||||
The desktop and raylib project tests run separately with
|
||||
|
||||
+2
-2
@@ -85,11 +85,11 @@ Frame :: (session: Session, viewport: Rectangle) -> s32 {
|
||||
```
|
||||
|
||||
Style sheets, charts, tables, trees, and source coloring are separate Git
|
||||
packages: add `https://github.com/kryonlabs/kss.git`,
|
||||
packages: add `https://github.com/kryonlabs/css.git`,
|
||||
`https://github.com/kryonlabs/plot.git`,
|
||||
`https://github.com/kryonlabs/data-views.git`, or
|
||||
`https://github.com/ziranlang/syntax.git` with `ziran add` and import
|
||||
`kss/Kss`, `plot/Plot`, `data_views/TableView`, `data_views/TreeView`, or
|
||||
`css/Css`, `plot/Plot`, `data_views/TableView`, `data_views/TreeView`, or
|
||||
`syntax/Syntax`. Kryon exports `geometry`, `drawing_props`, and the other
|
||||
building blocks listed in `ziran.toml` for code that needs those primitives
|
||||
without importing the widget catalog. Native and browser profiles resolve
|
||||
|
||||
+9
-9
@@ -28,7 +28,7 @@ the first frame:
|
||||
|
||||
```ziran
|
||||
Dom :: #import "kryon/Dom";
|
||||
// css is an application-owned CSS string, optionally exported by KSS.
|
||||
// css is an application-owned CSS string, optionally exported by the CSS package.
|
||||
Dom.UseDocumentLayout(css)
|
||||
```
|
||||
|
||||
@@ -41,14 +41,14 @@ owned by CSS; the core retained geometry remains the application's submitted
|
||||
layout. Prefer native identity activation over canvas hit tests in this mode.
|
||||
|
||||
DOM elements carry `data-kryon-widget` names and hashed `data-kryon-class`
|
||||
values for supported styled text and controls. The separate KSS package
|
||||
values for supported styled text and controls. The separate CSS package
|
||||
exports `ExportCSS(source, path, environment, output)` and `StyleClass(name)`.
|
||||
Its exporter shares the existing parser and token/environment rules, scopes
|
||||
selectors to `#kryon-dom-root`, maps widget/class/state selectors and expands
|
||||
portable declarations. Media conditions are preserved. Check its `ok` result
|
||||
before attaching output. Imports, layers, nested selector functions and
|
||||
unsupported native materials fail explicitly; consult the KSS package for
|
||||
its current export subset.
|
||||
The exporter scopes selectors to `#kryon-dom-root`, maps widget, class and
|
||||
state selectors to those attributes, and writes rules in Kryon's priority
|
||||
order so the browser ranks them as native hosts do. Environment media queries
|
||||
are decided for the given environment; viewport queries stay for the browser.
|
||||
Check its `ok` result before attaching output. Unresolved imports and
|
||||
attribute selectors fail explicitly; see the CSS package for its subset.
|
||||
|
||||
The DOM root and private presentation handles are removed at close. A
|
||||
text/semantics-only test snapshot omits secure values. Verification runs a
|
||||
@@ -59,7 +59,7 @@ python3 tests/dom_project_test.py
|
||||
KRYON_DOM_INTERACTION=1 python3 tests/dom_project_test.py
|
||||
```
|
||||
|
||||
The second check uses KSS and verifies no DOM mutations during unchanged
|
||||
The second check uses the CSS package and verifies no DOM mutations during unchanged
|
||||
frames, Unicode editing, identity/focus/caret after reorder, button routing,
|
||||
responsive sizing, password redaction and a native editor in the browser's
|
||||
accessibility tree. Neither test uses the owner's desktop or browser profile.
|
||||
@@ -11,7 +11,7 @@ They describe development builds, not released downloads.
|
||||
- `kryon-gallery.webp`: a selection of widgets from the real browser gallery.
|
||||
- `plot-candles.webp`: the gallery CandleChart example (`plot/4`), with sample data.
|
||||
- `data-views-table.webp`: the gallery TableView example (`data_views/2`), with sample data.
|
||||
- `kss-packs.webp`: the same fixture interface with the real KSS style packs.
|
||||
- `css-packs.webp`: the same fixture interface with the real CSS style packs.
|
||||
- `game2d-controls.webp`: the Game2D control chooser, compiled and rendered in
|
||||
the private browser live editor.
|
||||
|
||||
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
@@ -31,7 +31,7 @@
|
||||
</section>
|
||||
<section aria-labelledby="modules-heading">
|
||||
<div class="section-head"><div><p class="eyebrow">Modules</p><h2 id="modules-heading">Visual building <em>blocks.</em></h2></div><p>Explore the pieces behind our interfaces. Most come with live examples.</p></div>
|
||||
<div class="module-grid"><a class="card module-card" href="modules.html#kryon"><img class="thumb" src="assets/previews/kryon-gallery.webp" width="1488" height="1008" loading="lazy" alt="Kryon widgets from the live gallery"><div class="card-body"><h3>Kryon</h3><p>Buttons, fields, lists, menus and dialogs for desktop, web and Android.</p><span class="more">Explore →</span></div></a><a class="card module-card" href="modules.html#plot"><img class="thumb" src="assets/previews/plot-candles.webp" width="960" height="640" loading="lazy" alt="Plot candle chart with volume"><div class="card-body"><h3>Plot</h3><p>Line, bar, candle and band charts with axes and markers.</p><span class="more">Explore →</span></div></a><a class="card module-card" href="modules.html#data-views"><img class="thumb" src="assets/previews/data-views-table.webp" width="960" height="640" loading="lazy" alt="DataViews table of sample rows"><div class="card-body"><h3>DataViews</h3><p>Tables, trees and Kanban boards for real data.</p><span class="more">Explore →</span></div></a><a class="card module-card" href="modules.html#kss"><img class="thumb" src="assets/previews/kss-packs.webp" width="1120" height="708" loading="lazy" alt="Widgets styled with KSS style packs"><div class="card-body"><h3>KSS</h3><p>Style sheets with ready-made themes and color tokens.</p><span class="more">Explore →</span></div></a><a class="card module-card" href="modules.html#mingcute"><div class="thumb icon-strip"><img src="assets/previews/mingcute/home_3.svg" width="24" height="24" loading="lazy" alt=""><img src="assets/previews/mingcute/search.svg" width="24" height="24" loading="lazy" alt=""><img src="assets/previews/mingcute/settings_3.svg" width="24" height="24" loading="lazy" alt=""><img src="assets/previews/mingcute/heart.svg" width="24" height="24" loading="lazy" alt=""><img src="assets/previews/mingcute/star.svg" width="24" height="24" loading="lazy" alt=""><img src="assets/previews/mingcute/folder.svg" width="24" height="24" loading="lazy" alt=""></div><div class="card-body"><h3>MingCute</h3><p>About 3,300 icons, filled and regular.</p><span class="more">Explore →</span></div></a><a class="card module-card" href="modules.html#game2d"><img class="thumb" src="assets/previews/game2d-controls.webp" width="1286" height="806" loading="lazy" alt="Game2D control chooser"><div class="card-body"><h3>Game2D</h3><p>Collisions, menus and touch controls for 2D games.</p><span class="more">Explore →</span></div></a></div>
|
||||
<div class="module-grid"><a class="card module-card" href="modules.html#kryon"><img class="thumb" src="assets/previews/kryon-gallery.webp" width="1488" height="1008" loading="lazy" alt="Kryon widgets from the live gallery"><div class="card-body"><h3>Kryon</h3><p>Buttons, fields, lists, menus and dialogs for desktop, web and Android.</p><span class="more">Explore →</span></div></a><a class="card module-card" href="modules.html#plot"><img class="thumb" src="assets/previews/plot-candles.webp" width="960" height="640" loading="lazy" alt="Plot candle chart with volume"><div class="card-body"><h3>Plot</h3><p>Line, bar, candle and band charts with axes and markers.</p><span class="more">Explore →</span></div></a><a class="card module-card" href="modules.html#data-views"><img class="thumb" src="assets/previews/data-views-table.webp" width="960" height="640" loading="lazy" alt="DataViews table of sample rows"><div class="card-body"><h3>DataViews</h3><p>Tables, trees and Kanban boards for real data.</p><span class="more">Explore →</span></div></a><a class="card module-card" href="modules.html#css"><img class="thumb" src="assets/previews/css-packs.webp" width="1120" height="708" loading="lazy" alt="Widgets styled with the CSS style packs"><div class="card-body"><h3>CSS</h3><p>Style apps with a subset of CSS, plus ready-made style packs.</p><span class="more">Explore →</span></div></a><a class="card module-card" href="modules.html#mingcute"><div class="thumb icon-strip"><img src="assets/previews/mingcute/home_3.svg" width="24" height="24" loading="lazy" alt=""><img src="assets/previews/mingcute/search.svg" width="24" height="24" loading="lazy" alt=""><img src="assets/previews/mingcute/settings_3.svg" width="24" height="24" loading="lazy" alt=""><img src="assets/previews/mingcute/heart.svg" width="24" height="24" loading="lazy" alt=""><img src="assets/previews/mingcute/star.svg" width="24" height="24" loading="lazy" alt=""><img src="assets/previews/mingcute/folder.svg" width="24" height="24" loading="lazy" alt=""></div><div class="card-body"><h3>MingCute</h3><p>About 3,300 icons, filled and regular.</p><span class="more">Explore →</span></div></a><a class="card module-card" href="modules.html#game2d"><img class="thumb" src="assets/previews/game2d-controls.webp" width="1286" height="806" loading="lazy" alt="Game2D control chooser"><div class="card-body"><h3>Game2D</h3><p>Collisions, menus and touch controls for 2D games.</p><span class="more">Explore →</span></div></a></div>
|
||||
</section>
|
||||
<section class="live-section" aria-labelledby="live-heading">
|
||||
<div><p class="eyebrow">Try it</p><h2 id="live-heading">Edit it. <em>Watch it change.</em></h2><p>Change the source and the preview updates in your browser. Every example in the gallery works the same way.</p><div class="actions"><a class="btn btn-primary" href="widgets.html">Open the gallery</a><a class="text-link" href="demo.html">Full editor →</a></div></div>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
</head>
|
||||
<body><a class="skip-link" href="#main">Skip to content</a><header class="site-header"><div class="site-header-inner"><a class="brand" href="index.html"><img class="brand-icon" src="assets/brand/mark.svg" alt="" width="42" height="42"><span>Kryon Labs</span></a><button class="menu-button" type="button" aria-expanded="false" aria-controls="primary-nav">Menu</button><nav class="header-nav" id="primary-nav" aria-label="Primary"><a href="apps.html">Apps</a><a href="modules.html" aria-current="page">Modules</a><a href="widgets.html">Gallery</a><a href="docs.html">Docs</a></nav><div class="header-tools"><a class="header-link" href="https://github.com/kryonlabs">GitHub ↗</a><button class="theme-toggle" type="button" aria-label="Dark theme" aria-pressed="false"></button></div></div></header>
|
||||
<main id="main">
|
||||
<div class="page-head"><p class="eyebrow">Modules</p><h1>Building blocks for <em>interfaces.</em></h1><p class="lead">Visual modules for widgets, charts, data views, styles, icons and games. Try the live ones in the gallery, then add any of them to your project with one command.</p><nav class="jump-nav" aria-label="Modules on this page"><a href="#kryon">Kryon</a><a href="#plot">Plot</a><a href="#data-views">DataViews</a><a href="#kss">KSS</a><a href="#mingcute">MingCute</a><a href="#game2d">Game2D</a></nav></div>
|
||||
<div class="page-head"><p class="eyebrow">Modules</p><h1>Building blocks for <em>interfaces.</em></h1><p class="lead">Visual modules for widgets, charts, data views, styles, icons and games. Try the live ones in the gallery, then add any of them to your project with one command.</p><nav class="jump-nav" aria-label="Modules on this page"><a href="#kryon">Kryon</a><a href="#plot">Plot</a><a href="#data-views">DataViews</a><a href="#css">CSS</a><a href="#mingcute">MingCute</a><a href="#game2d">Game2D</a></nav></div>
|
||||
|
||||
<section class="detail" id="kryon" data-module="kryon" aria-labelledby="kryon-heading">
|
||||
<figure class="detail-visual"><div class="shot"><img src="assets/previews/kryon-gallery.webp" width="1488" height="1008" loading="lazy" alt="Kryon widgets in the gallery"></div><figcaption class="caption">From the live gallery.</figcaption></figure>
|
||||
@@ -47,12 +47,12 @@
|
||||
<div class="detail-links"><a class="btn btn-primary" href="widgets.html#data_views/2">Try it in the gallery</a><a class="text-link" href="https://github.com/kryonlabs/data-views#readme">Read the docs →</a><a class="text-link" href="https://github.com/kryonlabs/data-views">Source on GitHub ↗</a></div></div>
|
||||
</section>
|
||||
|
||||
<section class="detail" id="kss" data-module="kss" aria-labelledby="kss-heading">
|
||||
<figure class="detail-visual"><div class="shot"><img src="assets/previews/kss-packs.webp" width="1120" height="708" loading="lazy" alt="Widgets styled with KSS style packs"></div></figure>
|
||||
<div class="detail-copy"><span class="badge badge--open">Open source</span><h2 id="kss-heading">KSS</h2><p class="lead">Style sheets for Kryon interfaces, with ready-made looks to start from.</p><ul class="feature-list"><li>Classic, Lightfield and Material style packs</li><li>Color tokens</li><li>CSS export for the browser</li></ul>
|
||||
<section class="detail" id="css" data-module="css" aria-labelledby="css-heading">
|
||||
<figure class="detail-visual"><div class="shot"><img src="assets/previews/css-packs.webp" width="1120" height="708" loading="lazy" alt="Widgets styled with the CSS style packs"></div></figure>
|
||||
<div class="detail-copy"><span class="badge badge--open">Open source</span><h2 id="css-heading">CSS</h2><p class="lead">Style Kryon interfaces with the CSS you know, on every platform, with ready-made looks to start from.</p><ul class="feature-list"><li>A subset of CSS: selectors, custom properties, media queries and layers</li><li>Classic, Lightfield and Material style packs, compiled ahead of time</li><li>Clear errors with file, line and column</li><li>Browser CSS export for the document host</li></ul>
|
||||
<dl class="facts"><div><dt>License</dt><dd>BSD-3-Clause</dd></div><div><dt>Style packs</dt><dd>3</dd></div></dl>
|
||||
<pre class="install"><code>ziran add https://github.com/kryonlabs/kss.git</code></pre>
|
||||
<div class="detail-links"><a class="text-link" href="https://github.com/kryonlabs/kss#readme">Read the docs →</a><a class="text-link" href="https://github.com/kryonlabs/kss">Source on GitHub ↗</a></div></div>
|
||||
<pre class="install"><code>ziran add https://github.com/kryonlabs/css.git</code></pre>
|
||||
<div class="detail-links"><a class="text-link" href="https://github.com/kryonlabs/css#readme">Read the docs →</a><a class="text-link" href="https://github.com/kryonlabs/css">Source on GitHub ↗</a></div></div>
|
||||
</section>
|
||||
|
||||
<section class="detail" id="mingcute" data-module="mingcute" aria-labelledby="mingcute-heading">
|
||||
|
||||
@@ -127,7 +127,7 @@ dom_editors: [8192]EditorStage;
|
||||
|
||||
DomDocumentLayout :: () -> bool { return dom_document_layout }
|
||||
|
||||
// Call before the first frame. The app owns CSS authoring (KSS can export it).
|
||||
// Call before the first frame. The app owns CSS authoring (the CSS package can export it).
|
||||
// Unsupported canvas-only widgets fail the frame instead of disappearing.
|
||||
#program_export
|
||||
UseDocumentLayout :: (css: string) -> bool {
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ PageBoundsOrParent :: (session: Session, bounds: Rectangle) -> Rectangle {
|
||||
return bounds
|
||||
}
|
||||
|
||||
// A page or section is flush until KSS declares spacing.
|
||||
// A page or section is flush until a style sheet declares spacing.
|
||||
#program_export
|
||||
PageBoxStyle :: (kind: s32, class_name: s32) -> StyleData {
|
||||
base: StyleData
|
||||
|
||||
@@ -6,8 +6,9 @@ using Vectors :: #import "std/vec"
|
||||
using ButtonState;
|
||||
using StyleField;
|
||||
|
||||
// KSS is the text format. The runtime API uses plain Style* names.
|
||||
// Compilers and parsers lower .kss files into these typed rule tables.
|
||||
// Style sheets are a subset of CSS (the css package). The runtime API uses
|
||||
// plain Style* names; the parser and compiled packs lower sheets into these
|
||||
// typed rule tables.
|
||||
|
||||
#program_export
|
||||
StyleAny :: () -> s32 {
|
||||
|
||||
@@ -29,7 +29,7 @@ Start :: () {
|
||||
tasks[1].label = "Add a task list to the app"
|
||||
tasks[1].done = true
|
||||
tasks[2].label = "Try kryon run desktop"
|
||||
tasks[3].label = "Style the app with KSS"
|
||||
tasks[3].label = "Style the app with CSS"
|
||||
tasks[4].label = "Write a test for the tasks"
|
||||
tasks[5].label = "Install it with kryon install"
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ try {
|
||||
return {width:editor.getBoundingClientRect().width, password:document.querySelector('[aria-label="Password"]').type, readonly:document.querySelector('[aria-label="Read only"]').readOnly, color:getComputedStyle(document.querySelector('[aria-label="Run"]')).backgroundColor};
|
||||
})()`);
|
||||
if (initial.width !== 200 || initial.password !== 'password' || !initial.readonly || initial.color !== 'rgb(17, 34, 51)') {
|
||||
throw new Error('Native presentation or KSS mismatch: ' + JSON.stringify(initial));
|
||||
throw new Error('Native presentation or CSS mismatch: ' + JSON.stringify(initial));
|
||||
}
|
||||
await delay(150);
|
||||
await evaluate('globalThis.__changes = 0; globalThis.__changeDetails = []');
|
||||
@@ -139,7 +139,7 @@ try {
|
||||
await evaluate('globalThis.__kryonTestDone = true');
|
||||
await until(`document.getElementById('result')?.textContent === 'PASS'`);
|
||||
if (!await evaluate(`!JSON.stringify(globalThis.__kryonDomSnapshot).includes('test secret')`)) throw new Error('Snapshot leaked secure editor text');
|
||||
console.log('Native DOM: stable identity/focus, incremental updates, Unicode input, KSS, responsive layout and browser accessibility PASS');
|
||||
console.log('Native DOM: stable identity/focus, incremental updates, Unicode input, CSS, responsive layout and browser accessibility PASS');
|
||||
process.exitCode = 0;
|
||||
} else {
|
||||
let result = 'pending';
|
||||
|
||||
@@ -41,7 +41,7 @@ with (project / "lock").open("w") as lock:
|
||||
)
|
||||
if os.environ.get("KRYON_DOM_INTERACTION"):
|
||||
with (project / "ziran.toml").open("a") as manifest:
|
||||
manifest.write('\n[dependencies.Kss]\ngit = "https://github.com/kryonlabs/kss.git"\nref = "master"\n')
|
||||
manifest.write('\n[dependencies.css]\ngit = "https://github.com/kryonlabs/css.git"\nref = "master"\n')
|
||||
# A two-color encoded image exercises asset loading and mirrored UVs.
|
||||
assets = project / "assets"
|
||||
assets.mkdir(exist_ok=True)
|
||||
@@ -74,9 +74,9 @@ with (project / "lock").open("w") as lock:
|
||||
"ziran": str(ZIRAN_ROOT),
|
||||
}
|
||||
if os.environ.get("KRYON_DOM_INTERACTION"):
|
||||
local_kss = Path(os.environ.get("KSS_ROOT", ROOT.parent / "packages/kss"))
|
||||
if local_kss.is_dir():
|
||||
overrides["Kss"] = str(local_kss)
|
||||
local_css = Path(os.environ.get("CSS_ROOT", ROOT.parent / "packages/css"))
|
||||
if local_css.is_dir():
|
||||
overrides["css"] = str(local_css)
|
||||
if os.environ.get("RAYLIB_SOURCE"):
|
||||
overrides["raylib"] = os.environ["RAYLIB_SOURCE"]
|
||||
(project / "ziran.local.toml").write_text(
|
||||
|
||||
Vendored
+3
-3
@@ -1,6 +1,6 @@
|
||||
using UI :: #import "kryon/Widgets";
|
||||
Dom :: #import "kryon/Dom";
|
||||
CSS :: #import "Kss/Kss";
|
||||
CSS :: #import "css/Css";
|
||||
#import "std/web"
|
||||
host_api :: #system_library "host_api";
|
||||
RequestWindowClose :: () #foreign host_api;
|
||||
@@ -35,8 +35,8 @@ Frame :: (session: Session, viewport: Rectangle) -> s32 {
|
||||
if !started {
|
||||
css: [8192]u8
|
||||
sheet: CSS.CSSExport = CSS.ExportCSS(
|
||||
"@pack probe; Button.hero { background: #112233; color: white; } TextField { width: 200; margin-y: 8; } @media (max-width: 600px) { TextField { width: 120; } }",
|
||||
"probe.kss", CSS.KssDefaultEnvironment(), css[:])
|
||||
"Button.hero { background: #112233; color: white; } TextField { width: 200px; margin-block: 8px; } @media (max-width: 600px) { TextField { width: 120px; } }",
|
||||
"probe.css", CSS.CssDefaultEnvironment(), css[:])
|
||||
if !sheet.ok || !Dom.UseDocumentLayout(TextView(css[:sheet.count])) { return 1 }
|
||||
initial: string = "Aé"
|
||||
for byte: 0..3 { value[byte] = initial[byte] }
|
||||
|
||||
Vendored
-11
@@ -1,11 +0,0 @@
|
||||
0 0 0 0 0 0 0 0 0 0 0 1 1
|
||||
1 0 0 0 1 0 4 1004 0 1 3 1 1
|
||||
1 2 1 1 141 2 7 2141007 2 141 8 1 0
|
||||
0 8 0 0 80 1 0 1080000 1 80 0 1 1
|
||||
2 3 2 0 72 3 99 3072099 3 72 98 1 1
|
||||
1 0 1 0 21 0 2 21002 0 101 0 1 0
|
||||
1 0 0 1 101 0 0 101000 0 21 2 1 1
|
||||
0 0 0 0 0 3 0 3000000 2 141 7 1 1
|
||||
1 0 51 0 1021 0 0 1021000 1 1 0 1 0
|
||||
1 0 0 0 1 0 1001 2001 0 2 0 1 0
|
||||
0 0 0 0 0 -1 0 -1000000 0 0 0 0 1
|
||||
-8
@@ -1,8 +0,0 @@
|
||||
<empty> <empty> <empty>
|
||||
red <empty> solid
|
||||
<empty> 2 solid
|
||||
<empty> 0 <empty>
|
||||
<empty> 0px <empty>
|
||||
0 0 <empty>
|
||||
2px dashed red <empty> solid
|
||||
<empty> thin solid
|
||||
|
Vendored
-14
@@ -1,14 +0,0 @@
|
||||
<empty> <empty> <empty> <empty> <empty> <empty> 0 <empty> <empty>
|
||||
red blue <empty> <empty> <empty> <empty> 0 background-image linear-gradient(red, blue)
|
||||
red <empty> <empty> <empty> <empty> <empty> 0 <empty> <empty>
|
||||
<empty> blue <empty> <empty> <empty> <empty> 0 <empty> <empty>
|
||||
<empty> <empty> <empty> 0px <empty> <empty> 1 --kryon-offset-x 0px
|
||||
<empty> <empty> <empty> <empty> 2px <empty> 2 --kryon-offset-y 2px
|
||||
<empty> <empty> <empty> 0px <empty> <empty> 3 transform translate(var(--kryon-offset-x, 0px), var(--kryon-offset-y, 0px))
|
||||
<empty> <empty> <empty> <empty> 2px rotate(10deg) 3 transform translate(var(--kryon-offset-x, 0px), var(--kryon-offset-y, 0px)) rotate(10deg)
|
||||
<empty> <empty> <empty> <empty> <empty> rotate(10deg) 3 <empty> <empty>
|
||||
red blue <empty> 2px 3px rotate(10deg) -1 <empty> <empty>
|
||||
red blue <empty> 2px 3px rotate(10deg) 4 <empty> <empty>
|
||||
<empty> <empty> <empty> <empty> 2px <empty> 1 <empty> <empty>
|
||||
red blue none <empty> <empty> <empty> 0 <empty> <empty>
|
||||
red blue url(image.png) <empty> <empty> <empty> 0 <empty> <empty>
|
||||
|
Vendored
-28
@@ -1,28 +0,0 @@
|
||||
padding-x 3 0 padding-left padding-right
|
||||
padding-x 0 0 padding-left padding-right
|
||||
padding-x <empty> 0 <empty> <empty>
|
||||
padding-y 3 0 padding-top padding-bottom
|
||||
padding-y 0 0 padding-top padding-bottom
|
||||
padding-y <empty> 0 <empty> <empty>
|
||||
margin-x 3 0 margin-left margin-right
|
||||
margin-x 0 0 margin-left margin-right
|
||||
margin-x <empty> 0 <empty> <empty>
|
||||
margin-y 3 0 margin-top margin-bottom
|
||||
margin-y 0 0 margin-top margin-bottom
|
||||
margin-y <empty> 0 <empty> <empty>
|
||||
border red 0 border-color <empty>
|
||||
border 2px solid red 0 border <empty>
|
||||
transform rotate(10deg) 0 transform <empty>
|
||||
transform rotate(10deg) 1 <empty> <empty>
|
||||
offset-x 0 0 <empty> <empty>
|
||||
offset-y 3 1 <empty> <empty>
|
||||
content-offset-x 3 0 --kryon-content-offset-x <empty>
|
||||
content-offset-y 0 0 --kryon-content-offset-y <empty>
|
||||
icon-size 12 0 --kryon-icon-size <empty>
|
||||
background-end red 0 --kryon-background-end <empty>
|
||||
material glass 0 <empty> <empty>
|
||||
unknown 3 0 <empty> <empty>
|
||||
--custom 0 0 --custom <empty>
|
||||
foreground red 0 color <empty>
|
||||
line-clamp 2 0 line-clamp -webkit-line-clamp
|
||||
box-decoration-break clone 0 box-decoration-break -webkit-box-decoration-break
|
||||
|
-512
@@ -1,512 +0,0 @@
|
||||
P foreground color
|
||||
P background background
|
||||
P color color
|
||||
P background-color background-color
|
||||
P accent-color accent-color
|
||||
P caret-color caret-color
|
||||
P border border-color
|
||||
P border-color border-color
|
||||
P border-width border-width
|
||||
P border-top-width border-top-width
|
||||
P border-right-width border-right-width
|
||||
P border-bottom-width border-bottom-width
|
||||
P border-left-width border-left-width
|
||||
P border-top-color border-top-color
|
||||
P border-right-color border-right-color
|
||||
P border-bottom-color border-bottom-color
|
||||
P border-left-color border-left-color
|
||||
P border-inline-color border-inline-color
|
||||
P border-block-color border-block-color
|
||||
P border-inline-start-color border-inline-start-color
|
||||
P border-inline-end-color border-inline-end-color
|
||||
P border-block-start-color border-block-start-color
|
||||
P border-block-end-color border-block-end-color
|
||||
P border-inline-width border-inline-width
|
||||
P border-block-width border-block-width
|
||||
P border-inline-start-width border-inline-start-width
|
||||
P border-inline-end-width border-inline-end-width
|
||||
P border-block-start-width border-block-start-width
|
||||
P border-block-end-width border-block-end-width
|
||||
P border-top border-top
|
||||
P border-right border-right
|
||||
P border-bottom border-bottom
|
||||
P border-left border-left
|
||||
P border-inline border-inline
|
||||
P border-block border-block
|
||||
P border-inline-start border-inline-start
|
||||
P border-inline-end border-inline-end
|
||||
P border-block-start border-block-start
|
||||
P border-block-end border-block-end
|
||||
P border-image border-image
|
||||
P border-image-source border-image-source
|
||||
P border-image-slice border-image-slice
|
||||
P border-image-width border-image-width
|
||||
P border-image-outset border-image-outset
|
||||
P border-image-repeat border-image-repeat
|
||||
P border-style border-style
|
||||
P border-top-style border-top-style
|
||||
P border-right-style border-right-style
|
||||
P border-bottom-style border-bottom-style
|
||||
P border-left-style border-left-style
|
||||
P border-inline-style border-inline-style
|
||||
P border-block-style border-block-style
|
||||
P border-inline-start-style border-inline-start-style
|
||||
P border-inline-end-style border-inline-end-style
|
||||
P border-block-start-style border-block-start-style
|
||||
P border-block-end-style border-block-end-style
|
||||
P radius border-radius
|
||||
P border-radius border-radius
|
||||
P border-top-left-radius border-top-left-radius
|
||||
P border-top-right-radius border-top-right-radius
|
||||
P border-bottom-right-radius border-bottom-right-radius
|
||||
P border-bottom-left-radius border-bottom-left-radius
|
||||
P border-start-start-radius border-start-start-radius
|
||||
P border-start-end-radius border-start-end-radius
|
||||
P border-end-start-radius border-end-start-radius
|
||||
P border-end-end-radius border-end-end-radius
|
||||
P opacity opacity
|
||||
P padding padding
|
||||
P padding-x padding-left
|
||||
P padding-y padding-top
|
||||
P padding-left padding-left
|
||||
P padding-right padding-right
|
||||
P padding-top padding-top
|
||||
P padding-bottom padding-bottom
|
||||
P padding-inline padding-inline
|
||||
P padding-block padding-block
|
||||
P padding-inline-start padding-inline-start
|
||||
P padding-inline-end padding-inline-end
|
||||
P padding-block-start padding-block-start
|
||||
P padding-block-end padding-block-end
|
||||
P margin margin
|
||||
P margin-x margin-left
|
||||
P margin-y margin-top
|
||||
P margin-left margin-left
|
||||
P margin-right margin-right
|
||||
P margin-top margin-top
|
||||
P margin-bottom margin-bottom
|
||||
P margin-inline margin-inline
|
||||
P margin-block margin-block
|
||||
P margin-inline-start margin-inline-start
|
||||
P margin-inline-end margin-inline-end
|
||||
P margin-block-start margin-block-start
|
||||
P margin-block-end margin-block-end
|
||||
P width width
|
||||
P height height
|
||||
P min-width min-width
|
||||
P max-width max-width
|
||||
P min-height min-height
|
||||
P max-height max-height
|
||||
P inline-size inline-size
|
||||
P block-size block-size
|
||||
P min-inline-size min-inline-size
|
||||
P max-inline-size max-inline-size
|
||||
P min-block-size min-block-size
|
||||
P max-block-size max-block-size
|
||||
P inset inset
|
||||
P top top
|
||||
P right right
|
||||
P bottom bottom
|
||||
P left left
|
||||
P inset-inline inset-inline
|
||||
P inset-block inset-block
|
||||
P inset-inline-start inset-inline-start
|
||||
P inset-inline-end inset-inline-end
|
||||
P inset-block-start inset-block-start
|
||||
P inset-block-end inset-block-end
|
||||
P gap gap
|
||||
P row-gap row-gap
|
||||
P column-gap column-gap
|
||||
P font font
|
||||
P font-size font-size
|
||||
P typeface font-family
|
||||
P font-family font-family
|
||||
P font-weight font-weight
|
||||
P font-style font-style
|
||||
P font-variant font-variant
|
||||
P font-stretch font-stretch
|
||||
P font-kerning font-kerning
|
||||
P font-optical-sizing font-optical-sizing
|
||||
P font-feature-settings font-feature-settings
|
||||
P font-variation-settings font-variation-settings
|
||||
P font-size-adjust font-size-adjust
|
||||
P font-synthesis font-synthesis
|
||||
P font-synthesis-weight font-synthesis-weight
|
||||
P font-synthesis-style font-synthesis-style
|
||||
P font-synthesis-small-caps font-synthesis-small-caps
|
||||
P font-synthesis-position font-synthesis-position
|
||||
P font-variant-alternates font-variant-alternates
|
||||
P font-variant-caps font-variant-caps
|
||||
P font-variant-east-asian font-variant-east-asian
|
||||
P font-variant-ligatures font-variant-ligatures
|
||||
P font-variant-numeric font-variant-numeric
|
||||
P font-variant-position font-variant-position
|
||||
P font-language-override font-language-override
|
||||
P font-palette font-palette
|
||||
P letter-spacing letter-spacing
|
||||
P line-height line-height
|
||||
P text-indent text-indent
|
||||
P text-align text-align
|
||||
P text-align-last text-align-last
|
||||
P text-rendering text-rendering
|
||||
P text-decoration text-decoration
|
||||
P text-decoration-line text-decoration-line
|
||||
P text-decoration-color text-decoration-color
|
||||
P text-decoration-style text-decoration-style
|
||||
P text-decoration-skip text-decoration-skip
|
||||
P text-decoration-skip-ink text-decoration-skip-ink
|
||||
P text-decoration-thickness text-decoration-thickness
|
||||
P text-underline-offset text-underline-offset
|
||||
P text-underline-position text-underline-position
|
||||
P text-shadow text-shadow
|
||||
P text-emphasis text-emphasis
|
||||
P text-emphasis-color text-emphasis-color
|
||||
P text-emphasis-style text-emphasis-style
|
||||
P text-emphasis-position text-emphasis-position
|
||||
P text-transform text-transform
|
||||
P text-overflow text-overflow
|
||||
P white-space white-space
|
||||
P text-size-adjust text-size-adjust
|
||||
P text-orientation text-orientation
|
||||
P text-wrap text-wrap
|
||||
P text-wrap-mode text-wrap-mode
|
||||
P text-wrap-style text-wrap-style
|
||||
P text-justify text-justify
|
||||
P text-combine-upright text-combine-upright
|
||||
P ruby-align ruby-align
|
||||
P ruby-position ruby-position
|
||||
P text-spacing-trim text-spacing-trim
|
||||
P text-autospace text-autospace
|
||||
P text-box-trim text-box-trim
|
||||
P text-box-edge text-box-edge
|
||||
P word-break word-break
|
||||
P overflow-wrap overflow-wrap
|
||||
P word-wrap word-wrap
|
||||
P line-break line-break
|
||||
P hanging-punctuation hanging-punctuation
|
||||
P vertical-align vertical-align
|
||||
P display display
|
||||
P position position
|
||||
P z-index z-index
|
||||
P overflow overflow
|
||||
P overflow-inline overflow-inline
|
||||
P overflow-block overflow-block
|
||||
P overflow-x overflow-x
|
||||
P overflow-y overflow-y
|
||||
P box-sizing box-sizing
|
||||
P direction direction
|
||||
P writing-mode writing-mode
|
||||
P tab-size tab-size
|
||||
P hyphens hyphens
|
||||
P line-clamp line-clamp
|
||||
P list-style list-style
|
||||
P list-style-type list-style-type
|
||||
P list-style-position list-style-position
|
||||
P list-style-image list-style-image
|
||||
P counter-reset counter-reset
|
||||
P counter-increment counter-increment
|
||||
P counter-set counter-set
|
||||
P quotes quotes
|
||||
P marker-side marker-side
|
||||
P marker-start marker-start
|
||||
P marker-end marker-end
|
||||
P orphans orphans
|
||||
P widows widows
|
||||
P box-decoration-break box-decoration-break
|
||||
P border-collapse border-collapse
|
||||
P border-spacing border-spacing
|
||||
P table-layout table-layout
|
||||
P caption-side caption-side
|
||||
P empty-cells empty-cells
|
||||
P scroll-behavior scroll-behavior
|
||||
P overscroll-behavior overscroll-behavior
|
||||
P overscroll-behavior-x overscroll-behavior-x
|
||||
P overscroll-behavior-y overscroll-behavior-y
|
||||
P overscroll-behavior-inline overscroll-behavior-inline
|
||||
P overscroll-behavior-block overscroll-behavior-block
|
||||
P scroll-snap-type scroll-snap-type
|
||||
P scroll-snap-align scroll-snap-align
|
||||
P scroll-snap-stop scroll-snap-stop
|
||||
P scroll-timeline scroll-timeline
|
||||
P scroll-timeline-name scroll-timeline-name
|
||||
P scroll-timeline-axis scroll-timeline-axis
|
||||
P view-timeline view-timeline
|
||||
P view-timeline-name view-timeline-name
|
||||
P view-timeline-axis view-timeline-axis
|
||||
P view-timeline-inset view-timeline-inset
|
||||
P timeline-scope timeline-scope
|
||||
P scrollbar-color scrollbar-color
|
||||
P scrollbar-width scrollbar-width
|
||||
P scrollbar-gutter scrollbar-gutter
|
||||
P overflow-clip-margin overflow-clip-margin
|
||||
P scroll-margin scroll-margin
|
||||
P scroll-margin-top scroll-margin-top
|
||||
P scroll-margin-right scroll-margin-right
|
||||
P scroll-margin-bottom scroll-margin-bottom
|
||||
P scroll-margin-left scroll-margin-left
|
||||
P scroll-margin-inline scroll-margin-inline
|
||||
P scroll-margin-block scroll-margin-block
|
||||
P scroll-margin-inline-start scroll-margin-inline-start
|
||||
P scroll-margin-inline-end scroll-margin-inline-end
|
||||
P scroll-margin-block-start scroll-margin-block-start
|
||||
P scroll-margin-block-end scroll-margin-block-end
|
||||
P scroll-padding scroll-padding
|
||||
P scroll-padding-top scroll-padding-top
|
||||
P scroll-padding-right scroll-padding-right
|
||||
P scroll-padding-bottom scroll-padding-bottom
|
||||
P scroll-padding-left scroll-padding-left
|
||||
P scroll-padding-inline scroll-padding-inline
|
||||
P scroll-padding-block scroll-padding-block
|
||||
P scroll-padding-inline-start scroll-padding-inline-start
|
||||
P scroll-padding-inline-end scroll-padding-inline-end
|
||||
P scroll-padding-block-start scroll-padding-block-start
|
||||
P scroll-padding-block-end scroll-padding-block-end
|
||||
P touch-action touch-action
|
||||
P align-items align-items
|
||||
P justify-content justify-content
|
||||
P align-self align-self
|
||||
P justify-self justify-self
|
||||
P flex-direction flex-direction
|
||||
P flex-wrap flex-wrap
|
||||
P flex-flow flex-flow
|
||||
P flex flex
|
||||
P flex-grow flex-grow
|
||||
P flex-shrink flex-shrink
|
||||
P flex-basis flex-basis
|
||||
P grid grid
|
||||
P grid-template grid-template
|
||||
P grid-template-columns grid-template-columns
|
||||
P grid-template-rows grid-template-rows
|
||||
P grid-template-areas grid-template-areas
|
||||
P grid-auto-columns grid-auto-columns
|
||||
P grid-auto-rows grid-auto-rows
|
||||
P grid-auto-flow grid-auto-flow
|
||||
P grid-column grid-column
|
||||
P grid-column-start grid-column-start
|
||||
P grid-column-end grid-column-end
|
||||
P grid-area grid-area
|
||||
P grid-row grid-row
|
||||
P grid-row-start grid-row-start
|
||||
P grid-row-end grid-row-end
|
||||
P align-content align-content
|
||||
P align-tracks align-tracks
|
||||
P justify-items justify-items
|
||||
P justify-tracks justify-tracks
|
||||
P place-items place-items
|
||||
P place-content place-content
|
||||
P place-self place-self
|
||||
P object-fit object-fit
|
||||
P object-position object-position
|
||||
P object-view-box object-view-box
|
||||
P aspect-ratio aspect-ratio
|
||||
P image-rendering image-rendering
|
||||
P image-orientation image-orientation
|
||||
P image-resolution image-resolution
|
||||
P background-image background-image
|
||||
P background-size background-size
|
||||
P background-position background-position
|
||||
P background-position-x background-position-x
|
||||
P background-position-y background-position-y
|
||||
P background-repeat background-repeat
|
||||
P background-repeat-x background-repeat-x
|
||||
P background-repeat-y background-repeat-y
|
||||
P background-clip background-clip
|
||||
P background-origin background-origin
|
||||
P background-attachment background-attachment
|
||||
P background-blend-mode background-blend-mode
|
||||
P visibility visibility
|
||||
P transition transition
|
||||
P transition-property transition-property
|
||||
P transition-duration transition-duration
|
||||
P transition-timing-function transition-timing-function
|
||||
P transition-delay transition-delay
|
||||
P transition-behavior transition-behavior
|
||||
P animation animation
|
||||
P animation-name animation-name
|
||||
P animation-duration animation-duration
|
||||
P animation-timing-function animation-timing-function
|
||||
P animation-delay animation-delay
|
||||
P animation-iteration-count animation-iteration-count
|
||||
P animation-direction animation-direction
|
||||
P animation-fill-mode animation-fill-mode
|
||||
P animation-play-state animation-play-state
|
||||
P animation-composition animation-composition
|
||||
P animation-timeline animation-timeline
|
||||
P animation-range animation-range
|
||||
P animation-range-start animation-range-start
|
||||
P animation-range-end animation-range-end
|
||||
P transform transform
|
||||
P transform-origin transform-origin
|
||||
P transform-box transform-box
|
||||
P transform-style transform-style
|
||||
P translate translate
|
||||
P rotate rotate
|
||||
P scale scale
|
||||
P perspective perspective
|
||||
P perspective-origin perspective-origin
|
||||
P backface-visibility backface-visibility
|
||||
P offset-path offset-path
|
||||
P offset-distance offset-distance
|
||||
P offset-rotate offset-rotate
|
||||
P offset-anchor offset-anchor
|
||||
P offset-position offset-position
|
||||
P filter filter
|
||||
P backdrop-filter backdrop-filter
|
||||
P clip-path clip-path
|
||||
P mask mask
|
||||
P mask-image mask-image
|
||||
P mask-size mask-size
|
||||
P mask-position mask-position
|
||||
P mask-repeat mask-repeat
|
||||
P mask-origin mask-origin
|
||||
P mask-clip mask-clip
|
||||
P mask-composite mask-composite
|
||||
P mask-mode mask-mode
|
||||
P cursor cursor
|
||||
P pointer-events pointer-events
|
||||
P appearance appearance
|
||||
P user-select user-select
|
||||
P resize resize
|
||||
P field-sizing field-sizing
|
||||
P interpolate-size interpolate-size
|
||||
P overlay overlay
|
||||
P outline outline
|
||||
P outline-width outline-width
|
||||
P outline-offset outline-offset
|
||||
P outline-style outline-style
|
||||
P outline-color outline-color
|
||||
P box-shadow box-shadow
|
||||
P color-scheme color-scheme
|
||||
P forced-color-adjust forced-color-adjust
|
||||
P print-color-adjust print-color-adjust
|
||||
P color-interpolation color-interpolation
|
||||
P color-interpolation-filters color-interpolation-filters
|
||||
P paint-order paint-order
|
||||
P shape-outside shape-outside
|
||||
P shape-margin shape-margin
|
||||
P shape-image-threshold shape-image-threshold
|
||||
P contain contain
|
||||
P content-visibility content-visibility
|
||||
P contain-intrinsic-size contain-intrinsic-size
|
||||
P contain-intrinsic-width contain-intrinsic-width
|
||||
P contain-intrinsic-height contain-intrinsic-height
|
||||
P contain-intrinsic-inline-size contain-intrinsic-inline-size
|
||||
P contain-intrinsic-block-size contain-intrinsic-block-size
|
||||
P container container
|
||||
P container-type container-type
|
||||
P container-name container-name
|
||||
P anchor-name anchor-name
|
||||
P position-anchor position-anchor
|
||||
P position-area position-area
|
||||
P position-try position-try
|
||||
P position-try-fallbacks position-try-fallbacks
|
||||
P position-try-order position-try-order
|
||||
P position-visibility position-visibility
|
||||
P will-change will-change
|
||||
P view-transition-name view-transition-name
|
||||
P isolation isolation
|
||||
P mix-blend-mode mix-blend-mode
|
||||
P columns columns
|
||||
P column-count column-count
|
||||
P column-width column-width
|
||||
P column-fill column-fill
|
||||
P column-span column-span
|
||||
P column-rule column-rule
|
||||
P column-rule-color column-rule-color
|
||||
P column-rule-style column-rule-style
|
||||
P column-rule-width column-rule-width
|
||||
P break-before break-before
|
||||
P break-after break-after
|
||||
P break-inside break-inside
|
||||
P float float
|
||||
P clear clear
|
||||
P order order
|
||||
P focus outline-color
|
||||
P material <empty>
|
||||
P icon-size <empty>
|
||||
P offset-x <empty>
|
||||
P background-end <empty>
|
||||
P unknown <empty>
|
||||
P Opacity <empty>
|
||||
P fontWeight <empty>
|
||||
P --accent --accent
|
||||
P --xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
P <empty> <empty>
|
||||
U opacity 0
|
||||
U font-weight 0
|
||||
U fontWeight 0
|
||||
U line-height 0
|
||||
U lineHeight 0
|
||||
U z-index 0
|
||||
U zIndex 0
|
||||
U tab-size 0
|
||||
U tabSize 0
|
||||
U font-size-adjust 0
|
||||
U fontSizeAdjust 0
|
||||
U column-count 0
|
||||
U columnCount 0
|
||||
U order 0
|
||||
U flex-grow 0
|
||||
U flexGrow 0
|
||||
U flex-shrink 0
|
||||
U flexShrink 0
|
||||
U border-image-slice 0
|
||||
U borderImageSlice 0
|
||||
U border-image-width 0
|
||||
U borderImageWidth 0
|
||||
U border-image-outset 0
|
||||
U borderImageOutset 0
|
||||
U grid-column-start 0
|
||||
U gridColumnStart 0
|
||||
U grid-column-end 0
|
||||
U gridColumnEnd 0
|
||||
U grid-row-start 0
|
||||
U gridRowStart 0
|
||||
U grid-row-end 0
|
||||
U gridRowEnd 0
|
||||
U line-clamp 0
|
||||
U lineClamp 0
|
||||
U webkitLineClamp 0
|
||||
U orphans 0
|
||||
U widows 0
|
||||
U animation-iteration-count 0
|
||||
U animationIterationCount 0
|
||||
U shape-image-threshold 0
|
||||
U shapeImageThreshold 0
|
||||
U scale 0
|
||||
U width 1
|
||||
U padding-left 1
|
||||
U paddingLeft 1
|
||||
U border-radius 1
|
||||
U borderRadius 1
|
||||
U --kryon-offset-x 1
|
||||
U --custom 1
|
||||
U unknown 1
|
||||
B red 0
|
||||
B red 0
|
||||
B 1px solid red 1
|
||||
B 1px solid red 1
|
||||
B rgb(1, 2, 3) 1
|
||||
B <empty> 0
|
||||
B 0
|
||||
B red 0
|
||||
B 1px solid 1
|
||||
B red 0
|
||||
B 1px solid 1
|
||||
B red 0
|
||||
B 1px solid 1
|
||||
B red 0
|
||||
B 1px solid 1
|
||||
B
red
0
|
||||
B 1px
solid 1
|
||||
B
red
0
|
||||
B 1px
solid 1
|
||||
B red 0
|
||||
B 1px solid 1
|
||||
B red 0
|
||||
B 1px solid 1
|
||||
B red 0
|
||||
B 1px solid 1
|
||||
B red 0
|
||||
B 1pxsolid 1
|
||||
B 1pxsolid 0
|
||||
|
Vendored
-19
@@ -1,19 +0,0 @@
|
||||
@pack css.values;
|
||||
tokens {
|
||||
color { accent: #112233; }
|
||||
length { gap: 12; }
|
||||
}
|
||||
Button.before {
|
||||
background: accent;
|
||||
padding-x: gap;
|
||||
opacity: 0.25;
|
||||
width: 1.5e2px;
|
||||
--caption: "café; }";
|
||||
background-image: url(https://example.test/a;b);
|
||||
}
|
||||
@keyframes pulse {
|
||||
from { background: accent; opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
@theme dark { accent: #445566; }
|
||||
Button.after { background: accent; }
|
||||
Vendored
-7
@@ -1,7 +0,0 @@
|
||||
- - - - - - 0 0 0 0 0
|
||||
light normal comfortable mouse desktop - 1 0 0 0 0
|
||||
dark high compact touch android glow 2 1 1 1 1
|
||||
LIGHT HIGH touch mixed web glow 1 1 2 2 2
|
||||
dark normal comfortable mouse plan9 - 2 0 0 0 3
|
||||
light normal compact mixed terminal - 1 0 1 2 4
|
||||
unknown unknown unknown unknown unknown - 0 0 0 0 0
|
||||
Vendored
-40
@@ -1,40 +0,0 @@
|
||||
@version 1;
|
||||
@pack matched.demo;
|
||||
@import <matched-module>;
|
||||
tokens {
|
||||
color {
|
||||
accent: #112233;
|
||||
surface: #445566;
|
||||
}
|
||||
length { pad: 12; zero: 0; }
|
||||
duration { fast: 80ms; slow: 0.14s; }
|
||||
material { chrome: Flat; }
|
||||
}
|
||||
@theme dark {
|
||||
accent: #ffcc00;
|
||||
}
|
||||
@env contrast(high) {
|
||||
Button { border-width: 2; }
|
||||
}
|
||||
@env density(compact) {
|
||||
Button { padding-y: 4; }
|
||||
}
|
||||
@variant glow "Glow" {
|
||||
accent: #00ff00;
|
||||
}
|
||||
@layer components;
|
||||
Button {
|
||||
background: accent;
|
||||
foreground: shared-ink;
|
||||
border: surface;
|
||||
radius: zero;
|
||||
padding-y: fast;
|
||||
letter-spacing: 2;
|
||||
material: chrome;
|
||||
typeface: semibold;
|
||||
}
|
||||
@variant glow "Glow" {
|
||||
Button { letter-spacing: 9; }
|
||||
}
|
||||
Button:pressed { background: #304050; }
|
||||
Button.quiet { background: transparent; foreground: black; border: white; }
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
@pack matched.module;
|
||||
tokens {
|
||||
color { shared-ink: #f0f0f0; }
|
||||
length { shared-pad: 7; }
|
||||
}
|
||||
Surface { padding-x: shared-pad; }
|
||||
Vendored
-30
@@ -1,30 +0,0 @@
|
||||
odd 1 2 1 2n+1
|
||||
even 1 2 0 2n
|
||||
ODD 1 2 1 2n+1
|
||||
2n + 1 1 2 1 2n+1
|
||||
-n+3 1 -1 3 -n+3
|
||||
n 1 1 0 n
|
||||
+n 1 1 0 n
|
||||
-n 1 -1 0 -n
|
||||
0n+4 1 0 4 4
|
||||
15 1 0 15 15
|
||||
0 1 0 0 0
|
||||
-3 1 0 -3 -3
|
||||
0003 1 0 3 3
|
||||
2147483647n-2147483647 1 2147483647 -2147483647 2147483647n-2147483647
|
||||
1.5 0 0 0 -
|
||||
0x3 0 0 0 -
|
||||
1e2 0 0 0 -
|
||||
n+1.5 0 0 0 -
|
||||
2 n 0 0 0 -
|
||||
n of .item 0 0 0 -
|
||||
0 0 0 -
|
||||
n+ 0 0 0 -
|
||||
2147483648 0 0 0 -
|
||||
n-2147483648 0 0 0 -
|
||||
1; color:red 0 0 0 -
|
||||
n /* offset */ + 1 1 1 1 n+1
|
||||
odd// tail 1 2 1 2n+1
|
||||
1/* 0 0 0 -
|
||||
n+1/* 0 0 0 -
|
||||
/*start*/ even /*end*/ 1 2 0 2n
|
||||
|
-27
@@ -1,27 +0,0 @@
|
||||
single-match _ -1,-1,1 0 1
|
||||
single-miss _ -1,-1,0 0 0
|
||||
no-node _ -1,-1,1 -1 0
|
||||
child _> -1,-1,1;0,-1,2 1 1
|
||||
child-no-skip _> -1,-1,1;0,-1,0;1,-1,2 2 0
|
||||
descendant-skip _D -1,-1,1;0,-1,0;1,-1,2 2 1
|
||||
ancestor-backtrack _>D -1,-1,1;0,-1,2;1,-1,2;2,-1,4 3 1
|
||||
ancestor-no-match _>D -1,-1,0;0,-1,2;1,-1,2;2,-1,4 3 0
|
||||
adjacent _+ -1,-1,1;-1,0,2 1 1
|
||||
adjacent-no-skip _+ -1,-1,1;-1,0,0;-1,1,2 2 0
|
||||
sibling-skip _~ -1,-1,1;-1,0,0;-1,1,2 2 1
|
||||
sibling-backtrack _+~ -1,-1,1;-1,0,2;-1,1,0;-1,2,2;-1,3,4 4 1
|
||||
sibling-no-match _+~ -1,-1,0;-1,0,2;-1,1,0;-1,2,2;-1,3,4 4 0
|
||||
mixed _>+D -1,-1,1;0,-1,2;0,1,4;2,-1,8 3 1
|
||||
unknown-relation _? -1,-1,1;0,-1,2 1 0
|
||||
default-relation _0 -1,-1,1;0,-1,0;1,-1,2 2 1
|
||||
empty-chain -1,-1,1 0 0
|
||||
relative-child-chain >D -1,-1,0;0,-1,1;1,-1,2 2 1 0
|
||||
relative-child-no-skip > -1,-1,0;0,-1,0;1,-1,1 2 0 0
|
||||
relative-descendant D -1,-1,0;0,-1,0;1,-1,1 2 1 0
|
||||
relative-adjacent-descendant +D -1,-1,0;-1,0,1;1,-1,2 2 1 0
|
||||
relative-sibling-chain ~> -1,-1,0;-1,0,0;-1,1,1;2,-1,2 3 1 0
|
||||
relative-anchor-outside DD -1,-1,1;0,-1,0;1,-1,2 2 0 1
|
||||
relative-no-self D -1,-1,1 0 0 0
|
||||
relative-no-previous + -1,-1,1;-1,0,0 0 0 1
|
||||
relative-missing-anchor D -1,-1,1 0 0 -1
|
||||
relative-empty -1,-1,1 0 0 0
|
||||
|
-85
@@ -1,85 +0,0 @@
|
||||
S any - 1
|
||||
S ANY - 1
|
||||
S normal - 1
|
||||
S normal any_active=1 0
|
||||
S normal node_readonly=1 0
|
||||
S normal node_required=1 0
|
||||
S active pressed=1 1
|
||||
S active - 0
|
||||
S FOCUSED focus=1 1
|
||||
S focus-visible requested=1 1
|
||||
S hover hover=1 1
|
||||
S enabled - 1
|
||||
S enabled disabled=1 0
|
||||
S enabled node_disabled=1 0
|
||||
S read-only readonly_camel=1 1
|
||||
S readonly node_readonly=1 1
|
||||
S required required=1 1
|
||||
S optional node_required=1 0
|
||||
S optional - 1
|
||||
S valid kind=TextField 1
|
||||
S valid tag=input 1
|
||||
S valid kind=Button 0
|
||||
S valid kind=TextField,invalid=1 0
|
||||
S valid kind=TextField,aria_invalid=1 0
|
||||
S valid kind=TextField,extra_invalid=1 0
|
||||
S valid valid=1,invalid=1 1
|
||||
S placeholder-shown kind=TextField,placeholder_present=1 1
|
||||
S placeholder-shown kind=TextField,placeholder_present=1,value_present=1 0
|
||||
S placeholder_shown placeholder_shown_camel=1 1
|
||||
S placeholder-shown kind=Button,placeholder_present=1 0
|
||||
S custom requested=1 1
|
||||
S custom - 0
|
||||
R root - 1
|
||||
R root has_parent=1 0
|
||||
R scope has_scope=1,is_scope=1,has_parent=1 1
|
||||
R scope has_scope=1 0
|
||||
R scope has_parent=1 0
|
||||
R first-child sibling_index=0,sibling_count=2 1
|
||||
R first-child sibling_index=-1 0
|
||||
R last-child sibling_index=1,sibling_count=2 1
|
||||
R last-child sibling_index=-1 0
|
||||
R only-child sibling_count=1 1
|
||||
R only-child sibling_count=2 0
|
||||
R first-of-type type_index=0,type_count=2 1
|
||||
R last-of-type type_index=1,type_count=2 1
|
||||
R only-of-type type_count=1 1
|
||||
R only-of-type type_count=2 0
|
||||
R empty - 1
|
||||
R empty has_text=1 0
|
||||
R empty has_children=1 0
|
||||
R focus-within focus_within=1 1
|
||||
R focus-within - 0
|
||||
R target target=1 1
|
||||
R target - 0
|
||||
R has(Button) - -1
|
||||
I save id=save 1
|
||||
I save name=save 1
|
||||
I save key=save 1
|
||||
I save id=other,name=else,key=third 0
|
||||
I Save id=save 0
|
||||
I 保存 name=保存 1
|
||||
I - 0
|
||||
I save - 0
|
||||
P root has_parent=0 1
|
||||
P root has_parent=1 0
|
||||
P root|x has_parent=0 0
|
||||
P has|.leaf - -1
|
||||
P has - 0
|
||||
P unknown|x - 0
|
||||
P unknown - 0
|
||||
P nth-child|2 sibling_index=1,sibling_count=5,type_index=0,type_count=3 1
|
||||
P nth-child|2 sibling_index=3,sibling_count=5,type_index=1,type_count=3 0
|
||||
P nth-last-child|4 sibling_index=1,sibling_count=5 1
|
||||
P nth-last-child|2 sibling_index=1,sibling_count=5 0
|
||||
P nth-of-type|2 sibling_index=3,sibling_count=5,type_index=1,type_count=3 1
|
||||
P nth-of-type|4 sibling_index=3,sibling_count=5,type_index=1,type_count=3 0
|
||||
P nth-last-of-type|2 type_index=1,type_count=3 1
|
||||
P nth-last-of-type|1 type_index=1,type_count=3 0
|
||||
P nth-child|odd sibling_index=2,sibling_count=5 1
|
||||
P nth-last-child|-n+2 sibling_index=4,sibling_count=5 1
|
||||
P nth-child|2n + 1 sibling_index=2,sibling_count=5 1
|
||||
P nth-child|1 sibling_index=-1,sibling_count=5 0
|
||||
P nth-of-type|1 type_index=0,type_count=0 0
|
||||
P nth-child|n of .item sibling_index=1,sibling_count=3 0
|
||||
P nth-child sibling_index=0,sibling_count=3 0
|
||||
|
-42
@@ -1,42 +0,0 @@
|
||||
L Button, Text 1 2 0 Text - - -
|
||||
L Button[title="a,b"], :is(Text, Button) 1 2 0 :is(Text, Button) - - -
|
||||
L Button[title="a\\\",b"], Text 1 2 0 Text - - -
|
||||
L Button/* , { } */, Text 1 2 0 Text - - -
|
||||
S Column > Button.accent + Text 1 3 0 Text + - -
|
||||
S Column Button[title="a > b"] 1 2 0 Button[title="a > b"] space - -
|
||||
S Button:is(.a, :not(.b)) ~ Text 1 2 0 Text ~ - -
|
||||
A Button.accent#save:hover 1 4 131 hover - - -
|
||||
A Button:focus_visible 1 2 11 focus - - -
|
||||
A Button:active 1 2 11 pressed - - -
|
||||
A Button:read-only 1 2 11 readonly - - -
|
||||
A Button[title="café ], >"] 1 2 11 title café ], > - =
|
||||
A Button[data.label^="https://x/y"] 1 2 11 data.label https://x/y - ^=
|
||||
A Button[required] 1 2 11 required - - -
|
||||
A Button/* comment */.accent 1 2 21 accent - - -
|
||||
A Button:not(:is(.a, .b)) 1 2 11 not - :is(.a, .b) -
|
||||
A Button:has(> Row > Button:hover) 1 2 11 has - > Row > Button:hover -
|
||||
A * 1 1 0 * - - -
|
||||
L Button, 0 0 0 - - - -
|
||||
L Button,,Text 0 0 0 - - - -
|
||||
L Button[title="unfinished] 0 0 0 - - - -
|
||||
S Button > 0 0 0 - - - -
|
||||
S Button > > Text 0 0 0 - - - -
|
||||
A Button[title="x" i] 0 0 0 - - - -
|
||||
A Button[title!=x] 0 0 0 - - - -
|
||||
L Button/*unfinished 0 0 0 - - - -
|
||||
A Button:is([title=x)) 0 0 0 - - - -
|
||||
L Button:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(:is(.a))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) 0 0 0 - - - -
|
||||
A Button:is() 0 0 0 - - - -
|
||||
A Button:not(/*comment*/) 0 0 0 - - - -
|
||||
A Button[state=hover /* note */] 1 2 11 state hover - =
|
||||
A Button[title=two words] 0 0 0 - - - -
|
||||
R > .branch .leaf 1 2 0 .leaf space - -
|
||||
R .branch 1 1 0 .branch space - -
|
||||
R /*lead*/ + /*next*/ .branch 1 1 0 .branch + - -
|
||||
R ~ .branch > .leaf 1 2 0 .leaf > - -
|
||||
R > > .leaf 0 0 0 - - - -
|
||||
S > .leaf 0 0 0 - - - -
|
||||
A Column:has([title=":has("]) 1 2 11 has - [title=":has("] -
|
||||
A Column:has(/* :has( */ .leaf) 1 2 11 has - /* :has( */ .leaf -
|
||||
A Column:has(:has(.leaf)) 0 0 0 - - - -
|
||||
A Column:has(:is(.a, :HAS(.leaf))) 0 0 0 - - - -
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 16.
|
-53
@@ -1,53 +0,0 @@
|
||||
A hello world world ~= 1
|
||||
A hello world wor ~= 0
|
||||
A en-US en |= 1
|
||||
A english en |= 0
|
||||
A café 🌿 café ^= 1
|
||||
A café 🌿 🌿 $= 1
|
||||
A café 🌿 fé *= 1
|
||||
A abc <empty> ^= 0
|
||||
A abc <empty> $= 0
|
||||
A abc <empty> *= 0
|
||||
A <empty> <empty> = 1
|
||||
A abc ABC = 0
|
||||
A abc abc invalid 0
|
||||
A long longer $= 0
|
||||
A abc b *= 1
|
||||
A abc d *= 0
|
||||
N odd 3 - 1
|
||||
N odd 2 - 0
|
||||
N EVEN 4 - 1
|
||||
N 2n + 1 5 - 1
|
||||
N 2n + 1 6 - 0
|
||||
N -n + 3 2 - 1
|
||||
N -n + 3 4 - 0
|
||||
N 0n+4 4 - 1
|
||||
N 0n+4 5 - 0
|
||||
N +n 5 - 1
|
||||
N 3 3 - 1
|
||||
N +3 3 - 1
|
||||
N 3 2 - 0
|
||||
N 2n-1 1 - 1
|
||||
N 2 n 2 - 0
|
||||
N 1e0 1 - 0
|
||||
N 0x1 1 - 0
|
||||
N 1.0 1 - 0
|
||||
N 2n+ 2 - 0
|
||||
N 999999999999999999999n 2 - 0
|
||||
N odd 0 - 0
|
||||
N n-2147483647 2147483647 - 1
|
||||
N -2147483647n+2147483647 2147483647 - 1
|
||||
A <missing> <empty> = 0
|
||||
G is 2 0 0
|
||||
G is 2 1 1
|
||||
G is 2 2 1
|
||||
G where 2 0 0
|
||||
G where 2 1 1
|
||||
G not 2 0 1
|
||||
G not 2 1 0
|
||||
G not 2 2 0
|
||||
G is 0 0 0
|
||||
G not 0 0 0
|
||||
G is 2 3 0
|
||||
G is 2 -1 0
|
||||
G invalid 2 1 0
|
||||
|
@@ -33,7 +33,7 @@ PAGES = ['index', 'apps', 'modules', 'widgets', 'docs', 'getting-started', 'rend
|
||||
NAV = ['Apps', 'Modules', 'Gallery', 'Docs']
|
||||
CURRENT = {'apps': 'Apps', 'modules': 'Modules', 'widgets': 'Gallery', 'docs': 'Docs'}
|
||||
APPS = {'terminal', 'browser', 'github', 'shelf'}
|
||||
MODULES = {'kryon', 'plot', 'data-views', 'kss', 'mingcute', 'game2d'}
|
||||
MODULES = {'kryon', 'plot', 'data-views', 'css', 'mingcute', 'game2d'}
|
||||
# Repositories that are not public yet; the site must not send visitors there.
|
||||
PRIVATE = ('github.com/kryonlabs/terminal', 'github.com/kryonlabs/browser', 'github.com/kryonlabs/github')
|
||||
|
||||
|
||||
@@ -0,0 +1,179 @@
|
||||
:root {
|
||||
--background: #202020FF;
|
||||
--surface: #303030FF;
|
||||
--text: #F0F0F0FF;
|
||||
--circle: #808080FF;
|
||||
--button: #404040FF;
|
||||
--button_hover: #585858FF;
|
||||
--icon: #F0F0F0FF;
|
||||
--link: #80A0FFFF;
|
||||
}
|
||||
|
||||
@media (-kryon-theme: sky_dark) {
|
||||
:root {
|
||||
--background: #182838FF;
|
||||
--surface: #223648FF;
|
||||
--text: #B0D0EAFF;
|
||||
--circle: #5080B0FF;
|
||||
--button: #305070FF;
|
||||
--button_hover: #407090FF;
|
||||
--icon: #B0D0EAFF;
|
||||
--link: #60A0D0FF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: ocean_dark) {
|
||||
:root {
|
||||
--background: #102540FF;
|
||||
--surface: #1C3450FF;
|
||||
--text: #98C0DEFF;
|
||||
--circle: #306090FF;
|
||||
--button: #204060FF;
|
||||
--button_hover: #305575FF;
|
||||
--icon: #98C0DEFF;
|
||||
--link: #5090C0FF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: forest_dark) {
|
||||
:root {
|
||||
--background: #153020FF;
|
||||
--surface: #203C2AFF;
|
||||
--text: #B4D0B4FF;
|
||||
--circle: #356545FF;
|
||||
--button: #254530FF;
|
||||
--button_hover: #305540FF;
|
||||
--icon: #B4D0B4FF;
|
||||
--link: #508060FF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: sunset_dark) {
|
||||
:root {
|
||||
--background: #301810FF;
|
||||
--surface: #3E2418FF;
|
||||
--text: #E0B090FF;
|
||||
--circle: #804028FF;
|
||||
--button: #502818FF;
|
||||
--button_hover: #603525FF;
|
||||
--icon: #E0B090FF;
|
||||
--link: #C05030FF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: lavender_dark) {
|
||||
:root {
|
||||
--background: #201530FF;
|
||||
--surface: #2E2042FF;
|
||||
--text: #C4A8D0FF;
|
||||
--circle: #503570FF;
|
||||
--button: #352050FF;
|
||||
--button_hover: #453065FF;
|
||||
--icon: #C4A8D0FF;
|
||||
--link: #9060B0FF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: cherry_dark) {
|
||||
:root {
|
||||
--background: #301520FF;
|
||||
--surface: #40202AFF;
|
||||
--text: #D298A8FF;
|
||||
--circle: #703045FF;
|
||||
--button: #452028FF;
|
||||
--button_hover: #553038FF;
|
||||
--icon: #D298A8FF;
|
||||
--link: #B04060FF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: dawn_dark) {
|
||||
:root {
|
||||
--background: #27222CFF;
|
||||
--surface: #352D38FF;
|
||||
--text: #E9C7B7FF;
|
||||
--circle: #B85F60FF;
|
||||
--button: #3A6B70FF;
|
||||
--button_hover: #4D8385FF;
|
||||
--icon: #E9C7B7FF;
|
||||
--link: #D07267FF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: sage_dark) {
|
||||
:root {
|
||||
--background: #1F2A22FF;
|
||||
--surface: #2D3A30FF;
|
||||
--text: #C7D4C0FF;
|
||||
--circle: #5F8165FF;
|
||||
--button: #3C5440FF;
|
||||
--button_hover: #4E6650FF;
|
||||
--icon: #C7D4C0FF;
|
||||
--link: #8BA070FF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: ink_dark) {
|
||||
:root {
|
||||
--background: #251A12FF;
|
||||
--surface: #332418FF;
|
||||
--text: #F1D8B0FF;
|
||||
--circle: #A36532FF;
|
||||
--button: #5A3C24FF;
|
||||
--button_hover: #724B2CFF;
|
||||
--icon: #F1D8B0FF;
|
||||
--link: #D59152FF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: default_dark) {
|
||||
:root {
|
||||
--background: #202020FF;
|
||||
--surface: #303030FF;
|
||||
--text: #F0F0F0FF;
|
||||
--circle: #808080FF;
|
||||
--button: #404040FF;
|
||||
--button_hover: #585858FF;
|
||||
--icon: #F0F0F0FF;
|
||||
--link: #80A0FFFF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: mint_dark) {
|
||||
:root {
|
||||
--background: #122D28FF;
|
||||
--surface: #1B3B34FF;
|
||||
--text: #B9E4D5FF;
|
||||
--circle: #2E8272FF;
|
||||
--button: #25554BFF;
|
||||
--button_hover: #32695EFF;
|
||||
--icon: #B9E4D5FF;
|
||||
--link: #6EC8B0FF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: cobalt_dark) {
|
||||
:root {
|
||||
--background: #121833FF;
|
||||
--surface: #1B2445FF;
|
||||
--text: #C2CCF5FF;
|
||||
--circle: #384CA8FF;
|
||||
--button: #273573FF;
|
||||
--button_hover: #34458BFF;
|
||||
--icon: #C2CCF5FF;
|
||||
--link: #8EA0F0FF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: sweet_dark) {
|
||||
:root {
|
||||
--background: #161925FF;
|
||||
--surface: #181B28FF;
|
||||
--text: #C3C7D1FF;
|
||||
--circle: #C50ED2FF;
|
||||
--button: #202435FF;
|
||||
--button_hover: #C50ED2FF;
|
||||
--icon: #C3C7D1FF;
|
||||
--link: #E323F0FF;
|
||||
}
|
||||
}
|
||||
@@ -1,159 +0,0 @@
|
||||
@pack catalog-dark;
|
||||
@version 1;
|
||||
|
||||
tokens {
|
||||
color {
|
||||
background: #202020FF;
|
||||
surface: #303030FF;
|
||||
text: #F0F0F0FF;
|
||||
circle: #808080FF;
|
||||
button: #404040FF;
|
||||
button_hover: #585858FF;
|
||||
icon: #F0F0F0FF;
|
||||
link: #80A0FFFF;
|
||||
}
|
||||
}
|
||||
|
||||
@theme sky_dark {
|
||||
background: #182838FF;
|
||||
surface: #223648FF;
|
||||
text: #B0D0EAFF;
|
||||
circle: #5080B0FF;
|
||||
button: #305070FF;
|
||||
button_hover: #407090FF;
|
||||
icon: #B0D0EAFF;
|
||||
link: #60A0D0FF;
|
||||
}
|
||||
|
||||
@theme ocean_dark {
|
||||
background: #102540FF;
|
||||
surface: #1C3450FF;
|
||||
text: #98C0DEFF;
|
||||
circle: #306090FF;
|
||||
button: #204060FF;
|
||||
button_hover: #305575FF;
|
||||
icon: #98C0DEFF;
|
||||
link: #5090C0FF;
|
||||
}
|
||||
|
||||
@theme forest_dark {
|
||||
background: #153020FF;
|
||||
surface: #203C2AFF;
|
||||
text: #B4D0B4FF;
|
||||
circle: #356545FF;
|
||||
button: #254530FF;
|
||||
button_hover: #305540FF;
|
||||
icon: #B4D0B4FF;
|
||||
link: #508060FF;
|
||||
}
|
||||
|
||||
@theme sunset_dark {
|
||||
background: #301810FF;
|
||||
surface: #3E2418FF;
|
||||
text: #E0B090FF;
|
||||
circle: #804028FF;
|
||||
button: #502818FF;
|
||||
button_hover: #603525FF;
|
||||
icon: #E0B090FF;
|
||||
link: #C05030FF;
|
||||
}
|
||||
|
||||
@theme lavender_dark {
|
||||
background: #201530FF;
|
||||
surface: #2E2042FF;
|
||||
text: #C4A8D0FF;
|
||||
circle: #503570FF;
|
||||
button: #352050FF;
|
||||
button_hover: #453065FF;
|
||||
icon: #C4A8D0FF;
|
||||
link: #9060B0FF;
|
||||
}
|
||||
|
||||
@theme cherry_dark {
|
||||
background: #301520FF;
|
||||
surface: #40202AFF;
|
||||
text: #D298A8FF;
|
||||
circle: #703045FF;
|
||||
button: #452028FF;
|
||||
button_hover: #553038FF;
|
||||
icon: #D298A8FF;
|
||||
link: #B04060FF;
|
||||
}
|
||||
|
||||
@theme dawn_dark {
|
||||
background: #27222CFF;
|
||||
surface: #352D38FF;
|
||||
text: #E9C7B7FF;
|
||||
circle: #B85F60FF;
|
||||
button: #3A6B70FF;
|
||||
button_hover: #4D8385FF;
|
||||
icon: #E9C7B7FF;
|
||||
link: #D07267FF;
|
||||
}
|
||||
|
||||
@theme sage_dark {
|
||||
background: #1F2A22FF;
|
||||
surface: #2D3A30FF;
|
||||
text: #C7D4C0FF;
|
||||
circle: #5F8165FF;
|
||||
button: #3C5440FF;
|
||||
button_hover: #4E6650FF;
|
||||
icon: #C7D4C0FF;
|
||||
link: #8BA070FF;
|
||||
}
|
||||
|
||||
@theme ink_dark {
|
||||
background: #251A12FF;
|
||||
surface: #332418FF;
|
||||
text: #F1D8B0FF;
|
||||
circle: #A36532FF;
|
||||
button: #5A3C24FF;
|
||||
button_hover: #724B2CFF;
|
||||
icon: #F1D8B0FF;
|
||||
link: #D59152FF;
|
||||
}
|
||||
|
||||
@theme default_dark {
|
||||
background: #202020FF;
|
||||
surface: #303030FF;
|
||||
text: #F0F0F0FF;
|
||||
circle: #808080FF;
|
||||
button: #404040FF;
|
||||
button_hover: #585858FF;
|
||||
icon: #F0F0F0FF;
|
||||
link: #80A0FFFF;
|
||||
}
|
||||
|
||||
@theme mint_dark {
|
||||
background: #122D28FF;
|
||||
surface: #1B3B34FF;
|
||||
text: #B9E4D5FF;
|
||||
circle: #2E8272FF;
|
||||
button: #25554BFF;
|
||||
button_hover: #32695EFF;
|
||||
icon: #B9E4D5FF;
|
||||
link: #6EC8B0FF;
|
||||
}
|
||||
|
||||
@theme cobalt_dark {
|
||||
background: #121833FF;
|
||||
surface: #1B2445FF;
|
||||
text: #C2CCF5FF;
|
||||
circle: #384CA8FF;
|
||||
button: #273573FF;
|
||||
button_hover: #34458BFF;
|
||||
icon: #C2CCF5FF;
|
||||
link: #8EA0F0FF;
|
||||
}
|
||||
|
||||
@theme sweet_dark {
|
||||
background: #161925FF;
|
||||
surface: #181B28FF;
|
||||
text: #C3C7D1FF;
|
||||
circle: #C50ED2FF;
|
||||
button: #202435FF;
|
||||
button_hover: #C50ED2FF;
|
||||
icon: #C3C7D1FF;
|
||||
link: #E323F0FF;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,179 @@
|
||||
:root {
|
||||
--background: #C0C0C0FF;
|
||||
--surface: #D4D0C8FF;
|
||||
--text: #000000FF;
|
||||
--circle: #808080FF;
|
||||
--button: #C0C0C0FF;
|
||||
--button_hover: #E8E8E8FF;
|
||||
--icon: #000000FF;
|
||||
--link: #000080FF;
|
||||
}
|
||||
|
||||
@media (-kryon-theme: sky_light) {
|
||||
:root {
|
||||
--background: #E2EEFCFF;
|
||||
--surface: #D4E4F5FF;
|
||||
--text: #24487CFF;
|
||||
--circle: #7EB7E6FF;
|
||||
--button: #A6CFF2FF;
|
||||
--button_hover: #689ED7FF;
|
||||
--icon: #E2EEFCFF;
|
||||
--link: #4A90E2FF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: ocean_light) {
|
||||
:root {
|
||||
--background: #D0E8F8FF;
|
||||
--surface: #C0DDEEFF;
|
||||
--text: #1A4070FF;
|
||||
--circle: #5AA0D0FF;
|
||||
--button: #80C0E0FF;
|
||||
--button_hover: #4090D0FF;
|
||||
--icon: #D0E8F8FF;
|
||||
--link: #2080C0FF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: forest_light) {
|
||||
:root {
|
||||
--background: #E0F0E0FF;
|
||||
--surface: #D1E5D1FF;
|
||||
--text: #2A5030FF;
|
||||
--circle: #60B070FF;
|
||||
--button: #A0D0B0FF;
|
||||
--button_hover: #70C090FF;
|
||||
--icon: #E0F0E0FF;
|
||||
--link: #409050FF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: sunset_light) {
|
||||
:root {
|
||||
--background: #F8E8D8FF;
|
||||
--surface: #ECD8C6FF;
|
||||
--text: #502814FF;
|
||||
--circle: #D08050FF;
|
||||
--button: #F0C0A0FF;
|
||||
--button_hover: #E09060FF;
|
||||
--icon: #F8E8D8FF;
|
||||
--link: #C06030FF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: lavender_light) {
|
||||
:root {
|
||||
--background: #F0E8F8FF;
|
||||
--surface: #E2D7EEFF;
|
||||
--text: #402860FF;
|
||||
--circle: #9070B0FF;
|
||||
--button: #C0A0D0FF;
|
||||
--button_hover: #A080C0FF;
|
||||
--icon: #F0E8F8FF;
|
||||
--link: #705090FF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: cherry_light) {
|
||||
:root {
|
||||
--background: #F8D8E0FF;
|
||||
--surface: #ECC9D2FF;
|
||||
--text: #602030FF;
|
||||
--circle: #D06080FF;
|
||||
--button: #F0A0B0FF;
|
||||
--button_hover: #E07090FF;
|
||||
--icon: #F8D8E0FF;
|
||||
--link: #C04060FF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: dawn_light) {
|
||||
:root {
|
||||
--background: #F5E9DFFF;
|
||||
--surface: #E7D9D0FF;
|
||||
--text: #393B4AFF;
|
||||
--circle: #E07A6DFF;
|
||||
--button: #8FCFC6FF;
|
||||
--button_hover: #62B8B0FF;
|
||||
--icon: #F5E9DFFF;
|
||||
--link: #C8625CFF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: sage_light) {
|
||||
:root {
|
||||
--background: #E8ECDFFF;
|
||||
--surface: #D9E0D0FF;
|
||||
--text: #354438FF;
|
||||
--circle: #82A07DFF;
|
||||
--button: #B6C9A6FF;
|
||||
--button_hover: #94AF84FF;
|
||||
--icon: #E8ECDFFF;
|
||||
--link: #5D8268FF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: ink_light) {
|
||||
:root {
|
||||
--background: #F3E4C8FF;
|
||||
--surface: #E4CFAAFF;
|
||||
--text: #3F2B1CFF;
|
||||
--circle: #B8763FFF;
|
||||
--button: #D8B072FF;
|
||||
--button_hover: #C79151FF;
|
||||
--icon: #F8EED6FF;
|
||||
--link: #8F5B2FFF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: default_light) {
|
||||
:root {
|
||||
--background: #C0C0C0FF;
|
||||
--surface: #D4D0C8FF;
|
||||
--text: #000000FF;
|
||||
--circle: #808080FF;
|
||||
--button: #C0C0C0FF;
|
||||
--button_hover: #E8E8E8FF;
|
||||
--icon: #000000FF;
|
||||
--link: #000080FF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: mint_light) {
|
||||
:root {
|
||||
--background: #E4F4EEFF;
|
||||
--surface: #D2E7DFFF;
|
||||
--text: #1E453AFF;
|
||||
--circle: #4BB69AFF;
|
||||
--button: #98D8C6FF;
|
||||
--button_hover: #70C7B2FF;
|
||||
--icon: #E4F4EEFF;
|
||||
--link: #2D8F78FF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: cobalt_light) {
|
||||
:root {
|
||||
--background: #E7EAF4FF;
|
||||
--surface: #D7DDECFF;
|
||||
--text: #19274AFF;
|
||||
--circle: #4F67C8FF;
|
||||
--button: #A9B8EFFF;
|
||||
--button_hover: #7D92E0FF;
|
||||
--icon: #E7EAF4FF;
|
||||
--link: #354FB5FF;
|
||||
}
|
||||
}
|
||||
|
||||
@media (-kryon-theme: sweet_light) {
|
||||
:root {
|
||||
--background: #EEEEEEFF;
|
||||
--surface: #ECECECFF;
|
||||
--text: #31363DFF;
|
||||
--circle: #C50ED2FF;
|
||||
--button: #D5D5D5FF;
|
||||
--button_hover: #C50ED2FF;
|
||||
--icon: #31363DFF;
|
||||
--link: #E323F0FF;
|
||||
}
|
||||
}
|
||||
@@ -1,159 +0,0 @@
|
||||
@pack catalog-light;
|
||||
@version 1;
|
||||
|
||||
tokens {
|
||||
color {
|
||||
background: #C0C0C0FF;
|
||||
surface: #D4D0C8FF;
|
||||
text: #000000FF;
|
||||
circle: #808080FF;
|
||||
button: #C0C0C0FF;
|
||||
button_hover: #E8E8E8FF;
|
||||
icon: #000000FF;
|
||||
link: #000080FF;
|
||||
}
|
||||
}
|
||||
|
||||
@theme sky_light {
|
||||
background: #E2EEFCFF;
|
||||
surface: #D4E4F5FF;
|
||||
text: #24487CFF;
|
||||
circle: #7EB7E6FF;
|
||||
button: #A6CFF2FF;
|
||||
button_hover: #689ED7FF;
|
||||
icon: #E2EEFCFF;
|
||||
link: #4A90E2FF;
|
||||
}
|
||||
|
||||
@theme ocean_light {
|
||||
background: #D0E8F8FF;
|
||||
surface: #C0DDEEFF;
|
||||
text: #1A4070FF;
|
||||
circle: #5AA0D0FF;
|
||||
button: #80C0E0FF;
|
||||
button_hover: #4090D0FF;
|
||||
icon: #D0E8F8FF;
|
||||
link: #2080C0FF;
|
||||
}
|
||||
|
||||
@theme forest_light {
|
||||
background: #E0F0E0FF;
|
||||
surface: #D1E5D1FF;
|
||||
text: #2A5030FF;
|
||||
circle: #60B070FF;
|
||||
button: #A0D0B0FF;
|
||||
button_hover: #70C090FF;
|
||||
icon: #E0F0E0FF;
|
||||
link: #409050FF;
|
||||
}
|
||||
|
||||
@theme sunset_light {
|
||||
background: #F8E8D8FF;
|
||||
surface: #ECD8C6FF;
|
||||
text: #502814FF;
|
||||
circle: #D08050FF;
|
||||
button: #F0C0A0FF;
|
||||
button_hover: #E09060FF;
|
||||
icon: #F8E8D8FF;
|
||||
link: #C06030FF;
|
||||
}
|
||||
|
||||
@theme lavender_light {
|
||||
background: #F0E8F8FF;
|
||||
surface: #E2D7EEFF;
|
||||
text: #402860FF;
|
||||
circle: #9070B0FF;
|
||||
button: #C0A0D0FF;
|
||||
button_hover: #A080C0FF;
|
||||
icon: #F0E8F8FF;
|
||||
link: #705090FF;
|
||||
}
|
||||
|
||||
@theme cherry_light {
|
||||
background: #F8D8E0FF;
|
||||
surface: #ECC9D2FF;
|
||||
text: #602030FF;
|
||||
circle: #D06080FF;
|
||||
button: #F0A0B0FF;
|
||||
button_hover: #E07090FF;
|
||||
icon: #F8D8E0FF;
|
||||
link: #C04060FF;
|
||||
}
|
||||
|
||||
@theme dawn_light {
|
||||
background: #F5E9DFFF;
|
||||
surface: #E7D9D0FF;
|
||||
text: #393B4AFF;
|
||||
circle: #E07A6DFF;
|
||||
button: #8FCFC6FF;
|
||||
button_hover: #62B8B0FF;
|
||||
icon: #F5E9DFFF;
|
||||
link: #C8625CFF;
|
||||
}
|
||||
|
||||
@theme sage_light {
|
||||
background: #E8ECDFFF;
|
||||
surface: #D9E0D0FF;
|
||||
text: #354438FF;
|
||||
circle: #82A07DFF;
|
||||
button: #B6C9A6FF;
|
||||
button_hover: #94AF84FF;
|
||||
icon: #E8ECDFFF;
|
||||
link: #5D8268FF;
|
||||
}
|
||||
|
||||
@theme ink_light {
|
||||
background: #F3E4C8FF;
|
||||
surface: #E4CFAAFF;
|
||||
text: #3F2B1CFF;
|
||||
circle: #B8763FFF;
|
||||
button: #D8B072FF;
|
||||
button_hover: #C79151FF;
|
||||
icon: #F8EED6FF;
|
||||
link: #8F5B2FFF;
|
||||
}
|
||||
|
||||
@theme default_light {
|
||||
background: #C0C0C0FF;
|
||||
surface: #D4D0C8FF;
|
||||
text: #000000FF;
|
||||
circle: #808080FF;
|
||||
button: #C0C0C0FF;
|
||||
button_hover: #E8E8E8FF;
|
||||
icon: #000000FF;
|
||||
link: #000080FF;
|
||||
}
|
||||
|
||||
@theme mint_light {
|
||||
background: #E4F4EEFF;
|
||||
surface: #D2E7DFFF;
|
||||
text: #1E453AFF;
|
||||
circle: #4BB69AFF;
|
||||
button: #98D8C6FF;
|
||||
button_hover: #70C7B2FF;
|
||||
icon: #E4F4EEFF;
|
||||
link: #2D8F78FF;
|
||||
}
|
||||
|
||||
@theme cobalt_light {
|
||||
background: #E7EAF4FF;
|
||||
surface: #D7DDECFF;
|
||||
text: #19274AFF;
|
||||
circle: #4F67C8FF;
|
||||
button: #A9B8EFFF;
|
||||
button_hover: #7D92E0FF;
|
||||
icon: #E7EAF4FF;
|
||||
link: #354FB5FF;
|
||||
}
|
||||
|
||||
@theme sweet_light {
|
||||
background: #EEEEEEFF;
|
||||
surface: #ECECECFF;
|
||||
text: #31363DFF;
|
||||
circle: #C50ED2FF;
|
||||
button: #D5D5D5FF;
|
||||
button_hover: #C50ED2FF;
|
||||
icon: #31363DFF;
|
||||
link: #E323F0FF;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user