@ox-content/theme-swiss
v3.2.14
Published
International Typographic Style — a hard grid, rules, and precise slides — an Ox Content skin that composes with any @ox-content/theme-color-* scheme
Maintainers
Readme
@ox-content/theme-swiss
Swiss — International Typographic Style — a hard grid, rules, and precise slides — for Ox Content.
Form only. Geometry, texture, typography and motion, written entirely
against --octc-* custom properties. It names no colors, so it pairs with any
@ox-content/theme-color-* scheme. About 8.8 kB of CSS, zero JavaScript, zero
runtime dependencies.
npm install @ox-content/theme-swiss @ox-content/theme-color-tokyo-night// vite.config.ts
import { defineConfig } from "vite";
import { oxContent } from "@ox-content/vite-plugin";
import swiss from "@ox-content/theme-swiss";
import tokyoNight from "@ox-content/theme-color-tokyo-night";
export default defineConfig({
plugins: [
oxContent({
srcDir: "docs",
ssg: { siteName: "My Docs", theme: [swiss, tokyoNight] },
}),
],
});Layers compose left to right, so anything you append wins:
theme: [swiss, tokyoNight, { colors: { primary: "#ff5f56" } }];Motion
Transitions, scroll-driven reveals and cross-document page transitions are all
declarative CSS — no router, no observer, no client bundle. Everything sits
behind @supports and is switched off under prefers-reduced-motion: reduce.
Retune the choreography without touching the stylesheet:
theme: [swiss, tokyoNight, { tokens: { "motion-base": "200ms", "motion-ease": "linear" } }];License
MIT
