├── .gitignore ├── outline.mjs ├── postcss.config.cjs ├── media.mjs ├── sides.mjs ├── style.mjs ├── rems.mjs ├── fill.mjs ├── list.mjs ├── smoothing.mjs ├── stroke.mjs ├── debug.mjs ├── doc-header.mjs ├── z-index.mjs ├── decoration.mjs ├── opacity.mjs ├── text-align.mjs ├── user-select.mjs ├── position.mjs ├── transform.mjs ├── object-fit.mjs ├── test ├── reset.test.js ├── themeColor.test.js ├── font-size.test.js └── lib │ └── scales.test.js ├── visibility.mjs ├── inset.mjs ├── line-height.mjs ├── tracking.mjs ├── word-break.mjs ├── order.mjs ├── white-space.mjs ├── display.mjs ├── type-scale-properties.mjs ├── space-scale-properties.mjs ├── properties.mjs ├── typeface.mjs ├── cursor.mjs ├── weights.mjs ├── color.mjs ├── object-position.mjs ├── gap.mjs ├── font-size.mjs ├── layout.mjs ├── overflow.mjs ├── padding.mjs ├── flex.mjs ├── family.mjs ├── size.mjs ├── typography.mjs ├── radius.mjs ├── theme.mjs ├── config.json ├── margin.mjs ├── hex-to-hsl.mjs ├── sided.mjs ├── .github └── workflows │ ├── cla.yml │ └── ci.yml ├── border.mjs ├── cli.mjs ├── package.json ├── background.mjs ├── grid.mjs ├── index.mjs ├── reset.mjs ├── box-align.mjs ├── theme-color.mjs ├── lib └── scales.mjs ├── LICENSE ├── README.md └── dist ├── enhance.min.css └── enhance.css /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .npm 3 | .env 4 | .DS_Store 5 | -------------------------------------------------------------------------------- /outline.mjs: -------------------------------------------------------------------------------- 1 | export default function Outline(query) { 2 | return /*css*/` 3 | /*** Outline ***/ 4 | .outline-none${query}{outline:0;} 5 | ` 6 | } 7 | -------------------------------------------------------------------------------- /postcss.config.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: [ 3 | require('cssnano')({ 4 | preset: 'default', 5 | }), 6 | ], 7 | } 8 | -------------------------------------------------------------------------------- /media.mjs: -------------------------------------------------------------------------------- 1 | export default function media (size, content) { 2 | return /*css*/` 3 | @media only screen and (min-width:${size}) { 4 | ${content} 5 | } 6 | ` 7 | } 8 | -------------------------------------------------------------------------------- /sides.mjs: -------------------------------------------------------------------------------- 1 | export default { 2 | 'b': 'block', 3 | 'bs': 'block-start', 4 | 'be': 'block-end', 5 | 'i': 'inline', 6 | 'is': 'inline-start', 7 | 'ie': 'inline-end', 8 | } 9 | -------------------------------------------------------------------------------- /style.mjs: -------------------------------------------------------------------------------- 1 | export default function Style(query='') { 2 | return /*css*/` 3 | /*** Style ***/ 4 | .italic${query}{font-style:italic;} 5 | .not-italic${query}{font-style:normal;} 6 | ` 7 | } 8 | -------------------------------------------------------------------------------- /rems.mjs: -------------------------------------------------------------------------------- 1 | export default function rems (state={}) { 2 | const { config={}, value=0 } = state 3 | const { base=16 } = config 4 | return `${Math.round((value / base) * 1000) / 1000}rem` 5 | } 6 | -------------------------------------------------------------------------------- /fill.mjs: -------------------------------------------------------------------------------- 1 | export default function fill (state={}) { 2 | const { query='' } = state 3 | return /*css*/` 4 | /*** Fill ***/ 5 | .fill-none${query}{fill:none} 6 | .fill-current${query}{fill:currentColor} 7 | ` 8 | } 9 | -------------------------------------------------------------------------------- /list.mjs: -------------------------------------------------------------------------------- 1 | export default function list(query='') { 2 | return /*css*/` 3 | /*** List ***/ 4 | .list-none${query}{list-style:none;} 5 | .list-disc${query}{list-style:disc;} 6 | .list-decimal${query}{list-style:decimal;} 7 | ` 8 | } 9 | -------------------------------------------------------------------------------- /smoothing.mjs: -------------------------------------------------------------------------------- 1 | export default function Smoothing() { 2 | return ` 3 | /*** Smoothing ***/ 4 | .font-smoothing { 5 | -webkit-font-smoothing: antialiased; 6 | -moz-osx-font-smoothing: grayscale; 7 | } 8 | ` 9 | } 10 | 11 | -------------------------------------------------------------------------------- /stroke.mjs: -------------------------------------------------------------------------------- 1 | export default function stroke(state={}) { 2 | const { query='' } = state 3 | return /*css*/` 4 | /*** Stroke ***/ 5 | .stroke-none${query}{stroke:none;} 6 | .stroke-current${query}{stroke:currentColor;} 7 | ` 8 | } 9 | -------------------------------------------------------------------------------- /debug.mjs: -------------------------------------------------------------------------------- 1 | export default function Debug() { 2 | return ` 3 | /*** Debug ***/ 4 | .debug * { outline: 2px dotted var(--debug-color, rebeccapurple) } 5 | .debug *:hover { border:2px solid var(--debug-color, rebeccapurple) } 6 | ` 7 | } 8 | -------------------------------------------------------------------------------- /doc-header.mjs: -------------------------------------------------------------------------------- 1 | export default function DocHeader() { 2 | return /*css*/`/** 3 | * ENHANCE STYLES 4 | * For more information, please see the documentation at : https://github.com/enhance-dev/enhance-styles#readme 5 | */ 6 | ` 7 | } 8 | -------------------------------------------------------------------------------- /z-index.mjs: -------------------------------------------------------------------------------- 1 | export default function ZIndex(query='') { 2 | return /*css*/` 3 | /*** Z-Index ***/ 4 | .z-auto${query}{z-index:auto;} 5 | .z1${query}{z-index:1;} 6 | .z0${query}{z-index:0;} 7 | .z-1${query}{z-index:-1;} 8 | ` 9 | } 10 | -------------------------------------------------------------------------------- /decoration.mjs: -------------------------------------------------------------------------------- 1 | export default function decoration(query='') { 2 | return /*css*/` 3 | /*** Decoration ***/ 4 | .no-underline${query}{text-decoration:none;} 5 | .underline${query}{text-decoration:underline;} 6 | .line-through${query}{text-decoration:line-through;} 7 | ` 8 | } 9 | -------------------------------------------------------------------------------- /opacity.mjs: -------------------------------------------------------------------------------- 1 | export default function Opacity(query) { 2 | return /*css*/` 3 | /*** Opacity ***/ 4 | .opacity-0${query}{opacity:0;} 5 | .opacity-25${query}{opacity:0.25;} 6 | .opacity-50${query}{opacity:0.5;} 7 | .opacity-75${query}{opacity:0.75;} 8 | .opacity-100${query}{opacity:1.0;} 9 | ` 10 | } 11 | -------------------------------------------------------------------------------- /text-align.mjs: -------------------------------------------------------------------------------- 1 | export default function align(query='') { 2 | return /*css*/` 3 | /*** Text alignment ***/ 4 | .text-inherit${query}{text-align:inherit;} 5 | .text-center${query}{text-align:center;} 6 | .text-start${query}{text-align:start;} 7 | .text-end${query}{text-align:end;} 8 | ` 9 | } 10 | -------------------------------------------------------------------------------- /user-select.mjs: -------------------------------------------------------------------------------- 1 | export default function userSelect(query='') { 2 | return /*css*/` 3 | /*** User Select ***/ 4 | .select-none${query}{user-select:none;} 5 | .select-text${query}{user-select:text;} 6 | .select-all${query}{user-select:all;} 7 | .select-auto${query}{user-select:auto;} 8 | ` 9 | } 10 | -------------------------------------------------------------------------------- /position.mjs: -------------------------------------------------------------------------------- 1 | export default function position(query='') { 2 | return /*css*/` 3 | /*** Position ***/ 4 | .sticky${query}{position:sticky;} 5 | .static${query}{position:static;} 6 | .absolute${query}{position:absolute;} 7 | .relative${query}{position:relative;} 8 | .fixed${query}{position:fixed;} 9 | ` 10 | } 11 | -------------------------------------------------------------------------------- /transform.mjs: -------------------------------------------------------------------------------- 1 | export default function transform(query='') { 2 | return /*css*/` 3 | /*** Text Transform ***/ 4 | .uppercase${query}{text-transform:uppercase;} 5 | .lowercase${query}{text-transform:lowercase;} 6 | .capitalize${query}{text-transform:capitalize;} 7 | .normal-case${query}{text-transform:none;} 8 | ` 9 | } 10 | -------------------------------------------------------------------------------- /object-fit.mjs: -------------------------------------------------------------------------------- 1 | export default function ObjectFit(query='') { 2 | return /*css*/` 3 | /*** Object Fit ***/ 4 | .object-contain${query}{object-fit:contain;} 5 | .object-cover${query}{object-fit:cover;} 6 | .object-fill${query}{object-fit:fill;} 7 | .object-none${query}{object-fit:none;} 8 | .object-scale-down${query}{object-fit:scale-down;} 9 | ` 10 | } 11 | -------------------------------------------------------------------------------- /test/reset.test.js: -------------------------------------------------------------------------------- 1 | import test from 'tape' 2 | 3 | import reset from '../reset.mjs' 4 | 5 | const optOut = { 6 | reset: false 7 | } 8 | 9 | test('reset', t => { 10 | t.notEqual(reset(), '', 'should emit reset styles by default') 11 | t.equal(reset({ config: optOut }), '', 'should return an empty string when `config.reset` is `false`') 12 | t.end() 13 | }) 14 | -------------------------------------------------------------------------------- /visibility.mjs: -------------------------------------------------------------------------------- 1 | export default function visibility(query = '') { 2 | return /*css*/` 3 | /*** Visibility ***/ 4 | .invisible${query}{visibility:hidden;} 5 | .visible${query}{visibility:visible;} 6 | .screenreader-only${query}{border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal;} 7 | ` 8 | } 9 | -------------------------------------------------------------------------------- /inset.mjs: -------------------------------------------------------------------------------- 1 | import sides from './sides.mjs' 2 | 3 | export default function inset (query='') { 4 | let output = ` 5 | /*** Inset ***/ 6 | .inset-0${query}{inset:0} 7 | ` 8 | const sideKeys = Object.keys(sides) 9 | 10 | sideKeys.forEach(sideKey => { 11 | output += `.inset-${sideKey}-0${query}{inset-${sides[sideKey]}:0;}\n` 12 | }) 13 | 14 | return output 15 | } 16 | -------------------------------------------------------------------------------- /line-height.mjs: -------------------------------------------------------------------------------- 1 | export default function lineHeight (query='') { 2 | return /*css*/` 3 | /*** Line Height ***/ 4 | .leading5${query}{line-height: 2;} 5 | .leading4${query}{line-height: 1.625;} 6 | .leading3${query}{line-height: 1.5;} 7 | .leading2${query}{line-height: 1.375;} 8 | .leading1${query}{line-height: 1.25;} 9 | .leading0${query}, 10 | .leading-none${query}{line-height:1;} 11 | ` 12 | } 13 | -------------------------------------------------------------------------------- /tracking.mjs: -------------------------------------------------------------------------------- 1 | export default function tracking(query) { 2 | return /*css*/` 3 | /*** Tracking ***/ 4 | .tracking3${query}{letter-spacing: 0.1em;} 5 | .tracking2${query}{letter-spacing: 0.05em;} 6 | .tracking1${query}{letter-spacing: 0.025em;} 7 | .tracking0${query}{letter-spacing: 0;} 8 | .tracking-1${query}{letter-spacing: -0.025em;} 9 | .tracking-2${query}{letter-spacing: -0.05em;} 10 | ` 11 | } 12 | -------------------------------------------------------------------------------- /word-break.mjs: -------------------------------------------------------------------------------- 1 | export default function wordbreak(query='') { 2 | return /*css*/` 3 | /*** Wordbreak ***/ 4 | .break-normal${query}{word-break:normal} 5 | .break-normal${query}, 6 | .break-word${query}{overflow-wrap:normal} 7 | .break-all${query}{word-break:break-all} 8 | .break-keep${query}{word-break:keep-all} 9 | .truncate${query}, 10 | .ellipsis${query}{text-overflow:ellipsis} 11 | ` 12 | } 13 | -------------------------------------------------------------------------------- /order.mjs: -------------------------------------------------------------------------------- 1 | export default function order(query='') { 2 | return /*css*/` 3 | /*** Order ***/ 4 | .order-first${query}{order:-9999;} 5 | .order-last${query}{order:9999;} 6 | .order-none${query}{order:0;} 7 | .order-1${query}{order:1;} 8 | .order-2${query}{order:2;} 9 | .order-3${query}{order:3;} 10 | .order-4${query}{order:4;} 11 | .order-5${query}{order:5;} 12 | .order-6${query}{order:6;} 13 | ` 14 | } 15 | -------------------------------------------------------------------------------- /white-space.mjs: -------------------------------------------------------------------------------- 1 | export default function whitespace(query='') { 2 | return /*css*/` 3 | /*** Whitespace ***/ 4 | .whitespace-normal${query}{white-space:normal;} 5 | .truncate${query}, 6 | .whitespace-no-wrap${query}{white-space:nowrap;} 7 | .whitespace-pre${query}{white-space:pre;} 8 | .whitespace-pre-line${query}{white-space:pre-line;} 9 | .whitespace-pre-wrap${query}{white-space:pre-wrap;} 10 | ` 11 | } 12 | -------------------------------------------------------------------------------- /display.mjs: -------------------------------------------------------------------------------- 1 | export default function display (query) { 2 | return /*css*/` 3 | /*** Display ***/ 4 | .hidden${query}{display:none;} 5 | .block${query}{display:block;} 6 | .inline${query}{display:inline;} 7 | .inline-block${query}{display:inline-block;} 8 | .flex${query}{display:flex;} 9 | .inline-flex${query}{display:inline-flex;} 10 | .grid${query}{display:grid;} 11 | .inline-grid${query}{display:inline-grid;} 12 | ` 13 | } 14 | -------------------------------------------------------------------------------- /type-scale-properties.mjs: -------------------------------------------------------------------------------- 1 | import { generateTypeScaleProperties } from './lib/scales.mjs' 2 | 3 | export default function typeScaleProperties({ config }) { 4 | const { typeScale } = config 5 | let output = '' 6 | 7 | if (typeScale) { 8 | output = /*css*/` 9 | /*** Type Scale ***/ 10 | :root { 11 | ` 12 | output += generateTypeScaleProperties(typeScale) 13 | output += ` 14 | } 15 | ` 16 | } 17 | 18 | return output 19 | } 20 | -------------------------------------------------------------------------------- /space-scale-properties.mjs: -------------------------------------------------------------------------------- 1 | import { generateSpaceScaleProperties } from './lib/scales.mjs' 2 | 3 | export default function spaceScaleProperties({ config }) { 4 | const { spaceScale } = config 5 | let output = '' 6 | 7 | if (spaceScale) { 8 | output = /*css*/` 9 | /*** Space Scale ***/ 10 | :root { 11 | ` 12 | output += generateSpaceScaleProperties(spaceScale) 13 | output += ` 14 | } 15 | ` 16 | } 17 | 18 | return output 19 | } 20 | -------------------------------------------------------------------------------- /properties.mjs: -------------------------------------------------------------------------------- 1 | export default function properties(state={}) { 2 | const { config } = state 3 | const { properties={} } = config 4 | let output = '' 5 | if (Object.keys(properties).length) { 6 | output = /*css*/` 7 | /*** Custom Properties ***/ 8 | :root { 9 | ` 10 | output += Object.keys(properties).map(key => `--${key}:${properties[key]};/* ${key} */`).join('\n') 11 | 12 | output += ` 13 | } 14 | ` 15 | } 16 | 17 | return output 18 | } 19 | -------------------------------------------------------------------------------- /typeface.mjs: -------------------------------------------------------------------------------- 1 | import family from './family.mjs' 2 | 3 | export default function typeface(state={}) { 4 | const { config={} } = state 5 | const bodyFontSize = config.typeScale 6 | ? 'var(--text-0)' 7 | : '1rem' 8 | 9 | return /*css*/` 10 | /*** Typeface ***/ 11 | html {font-size: 100%;} 12 | ${family(config)} 13 | body { 14 | font-size: ${bodyFontSize}; 15 | font-weight: normal; 16 | line-height: 1; 17 | text-rendering: optimizeSpeed; 18 | } 19 | ` 20 | } 21 | -------------------------------------------------------------------------------- /cursor.mjs: -------------------------------------------------------------------------------- 1 | export default function Cursor(query) { 2 | return /*css*/` 3 | /*** Cursor ***/ 4 | .cursor-auto${query}{cursor:auto;} 5 | .cursor-default${query}{cursor:default;} 6 | .cursor-pointer${query}{cursor:pointer;} 7 | .cursor-wait${query}{cursor:wait;} 8 | .cursor-text${query}{cursor:text;} 9 | .cursor-move${query}{cursor:move;} 10 | .cursor-not-allowed${query}{cursor:not-allowed;} 11 | .cursor-grab${query}{cursor:grab;} 12 | .cursor-grabbing${query}{cursor:grabbing;} 13 | ` 14 | } 15 | -------------------------------------------------------------------------------- /weights.mjs: -------------------------------------------------------------------------------- 1 | export default function FontWeight (query='') { 2 | return /*css*/` 3 | /*** Font Weight ***/ 4 | .font-hairline${query}{font-weight:100;} 5 | .font-thin${query}{font-weight:200;} 6 | .font-light${query}{font-weight:300;} 7 | .font-normal${query}{font-weight:400;} 8 | .font-medium${query}{font-weight:500;} 9 | .font-semibold${query}{font-weight:600;} 10 | .font-bold${query}{font-weight:700;} 11 | .font-extrabold${query}{font-weight:800;} 12 | .font-black${query}{font-weight:900;} 13 | ` 14 | } 15 | -------------------------------------------------------------------------------- /color.mjs: -------------------------------------------------------------------------------- 1 | export default function color(state={}) { 2 | return /*css*/` 3 | /*** Color ***/ 4 | .text-current{color:currentColor}/* current color */ 5 | .text-transparent{color:transparent}/* transparent */ 6 | 7 | .border-current{border-color:currentColor}/* current color */ 8 | .border-transparent{border-color:transparent}/* transparent */ 9 | 10 | .background-current{background-color:currentColor}/* current color */ 11 | .background-transparent{background-color:transparent}/* transparent */ 12 | ` 13 | } 14 | -------------------------------------------------------------------------------- /test/themeColor.test.js: -------------------------------------------------------------------------------- 1 | import test from 'tape' 2 | 3 | import themeColor from '../theme-color.mjs' 4 | 5 | const noTheme = { 6 | theme: false 7 | } 8 | 9 | const noColor = { 10 | color: {} 11 | } 12 | 13 | test('themeColor', t => { 14 | t.notOk(themeColor({ config: noTheme }).includes('/*** Theme Colors ***/'), 'should not include theme colors when `config.theme` is `false`') 15 | t.notOk(themeColor({ config: noColor }).includes('/*** Spot Colors ***/'), 'should not include spot colors when `config.color` is empty') 16 | t.end() 17 | }) 18 | -------------------------------------------------------------------------------- /object-position.mjs: -------------------------------------------------------------------------------- 1 | export default function ObjectPosition(query) { 2 | return /*css*/` 3 | /*** Object Position ***/ 4 | .object-b${query}{object-position:bottom;} 5 | .object-c${query}{object-position:center;} 6 | .object-t${query}{object-position:top;} 7 | .object-r${query}{object-position:right;} 8 | .object-rt${query}{object-position:right top;} 9 | .object-rb${query}{object-position:right bottom;} 10 | .object-l${query}{object-position:left;} 11 | .object-lt${query}{object-position:left top;} 12 | .object-lb${query}{object-position:left bottom;} 13 | ` 14 | } 15 | -------------------------------------------------------------------------------- /gap.mjs: -------------------------------------------------------------------------------- 1 | import { generateSpaceScaleProperties, getScalePropertyNames } from './lib/scales.mjs' 2 | 3 | export default function gap(state={}) { 4 | const { config = {}, label: query = '' } = state 5 | let output = '' 6 | 7 | if (config.spaceScale) { 8 | output = ` 9 | /*** Gap ***/ 10 | ` 11 | const properties = generateSpaceScaleProperties(config.spaceScale) 12 | const propertyNames = getScalePropertyNames(properties) 13 | 14 | propertyNames.forEach(pn => { 15 | const step = pn.replace('--space-', '') 16 | output += `.gap${step}${query}{gap:var(${pn});}\n` 17 | }) 18 | } 19 | 20 | return output 21 | } 22 | 23 | -------------------------------------------------------------------------------- /font-size.mjs: -------------------------------------------------------------------------------- 1 | import { generateTypeScaleProperties, getScalePropertyNames } from './lib/scales.mjs' 2 | 3 | export default function fontSize(state = {}) { 4 | const { config = {}, label: query = ''} = state 5 | const { typeScale } = config 6 | 7 | let output = '' 8 | 9 | if (typeScale) { 10 | output = /*css*/` 11 | /*** Font Sizes ***/ 12 | ` 13 | 14 | const properties = generateTypeScaleProperties(typeScale) 15 | const propertyNames = getScalePropertyNames(properties) 16 | 17 | propertyNames.forEach(pn => { 18 | const step = pn.replace('--text-', '') 19 | output += `.text${step}${query}{font-size:var(${pn});}\n` 20 | }) 21 | } 22 | 23 | return output 24 | } 25 | -------------------------------------------------------------------------------- /layout.mjs: -------------------------------------------------------------------------------- 1 | import position from './position.mjs' 2 | import inset from './inset.mjs' 3 | import display from './display.mjs' 4 | import size from './size.mjs' 5 | import flex from './flex.mjs' 6 | import grid from './grid.mjs' 7 | import boxAlign from './box-align.mjs' 8 | import gap from './gap.mjs' 9 | import order from './order.mjs' 10 | import zIndex from './z-index.mjs' 11 | 12 | export default function layout(state={}) { 13 | const { label:query='' } = state 14 | return /*css*/` 15 | /*** Layout ***/ 16 | 17 | ${position(query)} 18 | ${inset(query)} 19 | ${display(query)} 20 | ${size(query)} 21 | ${flex(query)} 22 | ${grid(state)} 23 | ${boxAlign(query)} 24 | ${gap(state)} 25 | ${order(query)} 26 | ${zIndex(query)} 27 | ` 28 | } 29 | -------------------------------------------------------------------------------- /overflow.mjs: -------------------------------------------------------------------------------- 1 | export default function overflow (query) { 2 | return /*css*/` 3 | /*** Overflow ***/ 4 | .overflow-auto${query}{overflow:auto;} 5 | .truncate${query}, 6 | .overflow-hidden${query}{overflow:hidden;} 7 | .overflow-visible${query}{overflow:visible;} 8 | .overflow-scroll${query}{overflow:scroll;} 9 | .overflow-x-auto${query}{overflow-x:auto;} 10 | .overflow-y-auto${query}{overflow-y:auto;} 11 | .overflow-x-scroll${query}{overflow-x:scroll;} 12 | .overflow-x-hidden${query}{overflow-x:hidden;} 13 | .overflow-y-scroll${query}{overflow-y:scroll;} 14 | .overflow-y-hidden${query}{overflow-y:hidden;} 15 | .scrolling-touch${query}{-webkit-overflow-scrolling:touch;} 16 | .scrolling-auto${query}{-webkit-overflow-scrolling:auto;} 17 | ` 18 | } 19 | -------------------------------------------------------------------------------- /padding.mjs: -------------------------------------------------------------------------------- 1 | import sided from './sided.mjs' 2 | 3 | export default function padding(state={}) { 4 | const { config = {}, label: query = '' } = state 5 | let output = /*css*/` 6 | /*** Padding ***/ 7 | .p-none${query}{padding:0} 8 | .pb-none${query}{padding-block:0} 9 | .pbs-none${query}{padding-block-start:0} 10 | .pbe-none${query}{padding-block-end:0} 11 | .pi-none${query}{padding-inline:0} 12 | .pis-none${query}{padding-inline-start:0} 13 | .pie-none${query}{padding-inline-end:0} 14 | ` 15 | function template ({ label, step, side, value }) { 16 | side = side ? side = `-${side}` : '' 17 | return `.p${label}${step}${query}{padding${side}:${value};}\n` 18 | } 19 | 20 | output += sided({config, template}) 21 | return output 22 | } 23 | -------------------------------------------------------------------------------- /flex.mjs: -------------------------------------------------------------------------------- 1 | export default function flex(query='') { 2 | return /*css*/` 3 | /*** Flex ***/ 4 | .flex-1${query}{flex: 1 1 0%;} 5 | .flex-auto${query}{flex: 1 1 auto;} 6 | .flex-initial${query}{flex: 0 1 auto;} 7 | .flex-none${query}{flex:none;} 8 | .flex-row${query}{flex-direction:row;} 9 | .flex-row-reverse${query}{flex-direction:row-reverse;} 10 | .flex-col${query}{flex-direction:column;} 11 | .flex-col-reverse${query}{flex-direction:column-reverse;} 12 | .flex-grow${query}{flex-grow:1;} 13 | .flex-grow-0${query}{flex-grow:0;} 14 | .flex-shrink${query}{flex-shrink:1;} 15 | .flex-shrink-0${query}{flex-shrink:0;} 16 | .flex-wrap${query}{flex-wrap:wrap;} 17 | .flex-wrap-reverse${query}{flex-wrap:wrap-reverse;} 18 | .flex-no-wrap${query}{flex-wrap:nowrap;} 19 | ` 20 | } 21 | -------------------------------------------------------------------------------- /family.mjs: -------------------------------------------------------------------------------- 1 | export default function family(state={}) { 2 | const { fonts={} } = state 3 | const _default = ` 4 | .font-sans{font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";} 5 | .font-serif{font-family: Georgia, Cambria, "Times New Roman", Times, serif;} 6 | .font-mono{font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;} 7 | 8 | ` 9 | 10 | const out = Object.keys(fonts).length 11 | ? Object.keys(fonts) 12 | .map(key => `.font-${key}{font-family: ${fonts[key]};}`) 13 | .join('\n') 14 | : _default 15 | 16 | return /*css*/` 17 | /*** Family ***/ 18 | ${out} 19 | ` 20 | } 21 | -------------------------------------------------------------------------------- /size.mjs: -------------------------------------------------------------------------------- 1 | export default function size (query='') { 2 | return /*css*/` 3 | /*** Size ***/ 4 | .sb-0${query}{block-size:0} 5 | .sb-auto${query}{block-size:auto} 6 | .sb-100${query}{block-size:100%} 7 | .sb-min-0${query}{min-block-size:0} 8 | .sb-min-100${query}{min-block-size:100%} 9 | .sb-max-0${query}{max-block-size:0} 10 | .sb-max-100${query}{max-block-size:100%} 11 | .sb-100vw${query}{block-size:100vw} 12 | .sb-100vh${query}{block-size:100vh} 13 | .si-0${query}{inline-size:0} 14 | .si-auto${query}{inline-size:auto} 15 | .si-100${query}{inline-size:100%} 16 | .si-min-0${query}{min-inline-size:0} 17 | .si-min-100${query}{min-inline-size:100%} 18 | .si-max0${query}{max-inline-size:0} 19 | .si-max-100${query}{max-inline-size:100%} 20 | .si-100vw${query}{inline-size:100vw} 21 | .si-100vh${query}{inline-size:100vh} 22 | ` 23 | } 24 | -------------------------------------------------------------------------------- /typography.mjs: -------------------------------------------------------------------------------- 1 | import fontSize from './font-size.mjs' 2 | import style from './style.mjs' 3 | import lineHeight from './line-height.mjs' 4 | import weights from './weights.mjs' 5 | import textAlign from './text-align.mjs' 6 | import decoration from './decoration.mjs' 7 | import tracking from './tracking.mjs' 8 | import list from './list.mjs' 9 | import whitespace from './white-space.mjs' 10 | import wordbreak from './word-break.mjs' 11 | import transform from './transform.mjs' 12 | 13 | export default function typography(state={}) { 14 | const { label:query='' } = state 15 | return ` 16 | ${fontSize(state)} 17 | ${style(query)} 18 | ${lineHeight(query)} 19 | ${tracking(query)} 20 | ${weights(query)} 21 | ${transform(query)} 22 | ${textAlign(query)} 23 | ${decoration(query)} 24 | ${list(query)} 25 | ${whitespace(query)} 26 | ${wordbreak(query)} 27 | ` 28 | } 29 | -------------------------------------------------------------------------------- /radius.mjs: -------------------------------------------------------------------------------- 1 | export default function radius (state={}) { 2 | const { config={}, query=''} = state 3 | const { radii=[] } = config 4 | let output = /*css*/` 5 | /*** Radius ***/ 6 | .radius-none${query}{border-radius:0;} 7 | .radius-100${query}{border-radius:100%;} 8 | .radius-pill${query}{border-radius:9999px;} 9 | .radius-bs-none${query}, 10 | .radius-is-none${query}, 11 | .radius-ss-none${query}{border-start-start-radius:0;} 12 | .radius-bs-none${query}, 13 | .radius-ie-none${query}, 14 | .radius-se-none${query}{border-start-end-radius:0;} 15 | .radius-be-none${query}, 16 | .radius-is-none${query}, 17 | .radius-es-none${query}{border-end-start-radius:0;} 18 | .radius-be-none${query}, 19 | .radius-ie-none${query}, 20 | .radius-ee-none${query}{border-end-end-radius:0;} 21 | ` 22 | 23 | radii.map(function (r, i) { 24 | output += `.radius${i}${query}{border-radius:${r}px;}\n` 25 | }) 26 | return output 27 | } 28 | -------------------------------------------------------------------------------- /theme.mjs: -------------------------------------------------------------------------------- 1 | import reset from './reset.mjs' 2 | import typeface from './typeface.mjs' 3 | import properties from './properties.mjs' 4 | import background from './background.mjs' 5 | import border from './border.mjs' 6 | import color from './color.mjs' 7 | import themeColor from './theme-color.mjs' 8 | import fill from './fill.mjs' 9 | import smoothing from './smoothing.mjs' 10 | import stroke from './stroke.mjs' 11 | import typeScaleProperties from './type-scale-properties.mjs' 12 | import spaceScaleProperties from './space-scale-properties.mjs' 13 | 14 | export default function theme(config) { 15 | return /*css*/` 16 | ${themeColor({ config })} 17 | ${properties({ config })} 18 | ${typeScaleProperties({ config })} 19 | ${spaceScaleProperties({ config })} 20 | ${reset({ config })} 21 | ${typeface({ config })} 22 | ${smoothing()} 23 | ${background({ config })} 24 | ${border({ config })} 25 | ${color({ config })} 26 | ${fill({ config })} 27 | ${stroke({ config })} 28 | ` 29 | } 30 | -------------------------------------------------------------------------------- /config.json: -------------------------------------------------------------------------------- 1 | { 2 | "typeScale": { 3 | "steps": 6, 4 | "viewportMin": 320, 5 | "viewportMax": 1500, 6 | "baseMin": 16, 7 | "baseMax": 18, 8 | "scaleMin": "minor-third", 9 | "scaleMax": "perfect-fourth" 10 | }, 11 | "spaceScale": { 12 | "steps": 6, 13 | "viewportMin": 320, 14 | "viewportMax": 1500, 15 | "baseMin": 16, 16 | "baseMax": 18, 17 | "scaleMin": "minor-third", 18 | "scaleMax": "perfect-fourth" 19 | }, 20 | "fonts": { 21 | "sans": "system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif", 22 | "serif": "Georgia,Cambria,Times New Roman,Times,serif", 23 | "mono": "Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace" 24 | }, 25 | "theme": {}, 26 | "color": {}, 27 | "properties": {}, 28 | "grid": { 29 | "steps": 6 30 | }, 31 | "queries": { 32 | "lg": "48em" 33 | }, 34 | "borders": { 35 | "widths": [1, 2, 4] 36 | }, 37 | "radii": [2, 8, 16, 9999] 38 | } 39 | -------------------------------------------------------------------------------- /margin.mjs: -------------------------------------------------------------------------------- 1 | import sided from './sided.mjs' 2 | 3 | export default function margin (state={}) { 4 | const { config = {}, label:query = '' } = state 5 | let output = /*css*/` 6 | /*** Margin ***/ 7 | .m-none${query}{margin:0} 8 | .mb-none${query}{margin-block:0} 9 | .mbs-none${query}{margin-block-start:0} 10 | .mbe-none${query}{margin-block-end:0} 11 | .mi-none${query}{margin-inline:0} 12 | .mis-none${query}{margin-inline-start:0} 13 | .mie-none${query}{margin-inline-end:0} 14 | .m-auto${query}{margin:auto} 15 | .mb-auto${query}{margin-block:auto} 16 | .mbs-auto${query}{margin-block-start:auto} 17 | .mbe-auto${query}{margin-block-end:auto} 18 | .mi-auto${query}{margin-inline:auto} 19 | .mis-auto${query}{margin-inline-start:auto} 20 | .mie-auto${query}{margin-inline-end:auto} 21 | ` 22 | 23 | function template ({ label, step, side, value }) { 24 | side = side ? side = `-${side}` : '' 25 | return `.m${label}${step}${query}{margin${side}:${value};}\n` 26 | } 27 | 28 | output += sided({config, template}) 29 | return output 30 | } 31 | -------------------------------------------------------------------------------- /hex-to-hsl.mjs: -------------------------------------------------------------------------------- 1 | export default function HEXToHSL(H) { 2 | let r = 0 3 | let g = 0 4 | let b = 0 5 | 6 | if (H.length == 4) { 7 | r = "0x" + H[1] + H[1] 8 | g = "0x" + H[2] + H[2] 9 | b = "0x" + H[3] + H[3] 10 | } 11 | else if (H.length == 7) { 12 | r = "0x" + H[1] + H[2] 13 | g = "0x" + H[3] + H[4] 14 | b = "0x" + H[5] + H[6] 15 | } 16 | 17 | r /= 255 18 | g /= 255 19 | b /= 255 20 | 21 | let cmin = Math.min(r,g,b) 22 | let cmax = Math.max(r,g,b) 23 | let delta = cmax - cmin 24 | let h = 0 25 | let s = 0 26 | let l = 0 27 | 28 | if (delta == 0) 29 | h = 0 30 | else if (cmax == r) 31 | h = ((g - b) / delta) % 6 32 | else if (cmax == g) 33 | h = (b - r) / delta + 2 34 | else 35 | h = (r - g) / delta + 4 36 | 37 | h = Math.round(h * 60) 38 | 39 | if (h < 0) 40 | h += 360 41 | 42 | l = (cmax + cmin) / 2 43 | s = delta == 0 ? 0 : delta / (1 - Math.abs(2 * l - 1)) 44 | s = +(s * 100).toFixed(1) 45 | l = +(l * 100).toFixed(1) 46 | 47 | return { h, s, l } 48 | } -------------------------------------------------------------------------------- /sided.mjs: -------------------------------------------------------------------------------- 1 | import sides from './sides.mjs' 2 | import { generateSpaceScaleProperties, getScalePropertyNames } from './lib/scales.mjs' 3 | 4 | export default function sided(state={}) { 5 | const { config = {}, template } = state 6 | let output = '' 7 | 8 | if (config.spaceScale) { 9 | const sideKeys = Object.keys(sides) 10 | const properties = generateSpaceScaleProperties(config.spaceScale) 11 | const propertyNames = getScalePropertyNames(properties) 12 | 13 | propertyNames.forEach(pn => { 14 | const step = pn.replace('--space-', '') 15 | 16 | // All sides 17 | output += template({ 18 | label: '', 19 | step, 20 | side: '', 21 | value: `var(${pn})` 22 | }) 23 | 24 | // Single and double sides 25 | sideKeys.forEach(sideKey => { 26 | output += template({ 27 | label: sideKey, 28 | step, 29 | side: sides[sideKey], 30 | value: `var(${pn})` 31 | }) 32 | }) 33 | }) 34 | } 35 | return output 36 | } 37 | -------------------------------------------------------------------------------- /.github/workflows/cla.yml: -------------------------------------------------------------------------------- 1 | name: "CLA Assistant" 2 | on: 3 | issue_comment: 4 | types: [created] 5 | pull_request_target: 6 | types: [opened,closed,synchronize] 7 | 8 | permissions: 9 | actions: write 10 | contents: write 11 | pull-requests: write 12 | statuses: write 13 | 14 | jobs: 15 | CLAAssistant: 16 | runs-on: ubuntu-latest 17 | steps: 18 | - name: "CLA Assistant" 19 | if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' 20 | uses: contributor-assistant/github-action@v2.4.0 21 | env: 22 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 23 | PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} 24 | with: 25 | path-to-signatures: 'signatures/v1/cla.json' 26 | path-to-document: 'https://github.com/enhance-dev/.github/blob/main/CLA.md' 27 | branch: 'main' 28 | allowlist: brianleroux,colepeters,kristoferjoseph,macdonst,ryanbethel,ryanblock,tbeseda 29 | remote-organization-name: enhance-dev 30 | remote-repository-name: .github 31 | -------------------------------------------------------------------------------- /border.mjs: -------------------------------------------------------------------------------- 1 | import radius from './radius.mjs' 2 | 3 | export default function border(state={}) { 4 | const query = state.query || '' 5 | const config = state.config 6 | const widths = (config.borders && 7 | config.borders.widths || [1]) 8 | widths.unshift(0) 9 | let output = /*css*/` 10 | /*** Border ***/ 11 | .border-solid${query}{border-style:solid;} 12 | .border-dashed${query}{border-style:dashed;} 13 | .border-dotted${query}{border-style:dotted;} 14 | .border-double${query}{border-style:double;} 15 | .border-none${query}{border-style:none;} 16 | .border-bs-none${query}{border-block-start:none;} 17 | .border-be-none${query}{border-block-end:none;} 18 | .border-is-none${query}{border-inline-start:none;} 19 | .border-ie-none${query}{border-inline-end:none;} 20 | ` 21 | widths.map((w, i) => { 22 | output += ` 23 | .border${i}${query}{border-width:${w}px;} 24 | .border-bs${i}${query}{border-block-start-width:${w}px;} 25 | .border-be${i}${query}{border-block-end-width:${w}px;} 26 | .border-is${i}${query}{border-inline-start-width:${w}px;} 27 | .border-ie${i}${query}{border-inline-end-width:${w}px;} 28 | ` 29 | }) 30 | 31 | output += '\n' 32 | output += radius({config, query}) 33 | return output 34 | } 35 | -------------------------------------------------------------------------------- /cli.mjs: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | import { readFileSync, writeFileSync } from 'node:fs' 3 | import { join } from 'node:path' 4 | import { argv, cwd, stderr, stdout } from 'node:process' 5 | import { fileURLToPath } from 'node:url' 6 | import styles from './index.mjs' 7 | 8 | function getArg(key) { 9 | const value = argv.find(a => a.startsWith(`--${key}=`)) 10 | if (!value) return null 11 | return value.replace(`--${key}=`, '') 12 | } 13 | 14 | const here = fileURLToPath(new URL('.', import.meta.url)) 15 | 16 | const configArg = getArg('config') 17 | const outputArg = getArg('output') 18 | const configPath = configArg 19 | ? join(cwd(), configArg) 20 | : join(here, './config.json') 21 | 22 | let configBlob 23 | try { 24 | configBlob = readFileSync(configPath, 'utf-8') 25 | } 26 | catch (err) { 27 | stderr.write(`Error reading config file: ${configPath}\n`) 28 | process.exit(1) 29 | } 30 | 31 | if (outputArg) { 32 | const outputPath = join(cwd(), outputArg) 33 | try { 34 | writeFileSync(outputPath, styles(configBlob)) 35 | } 36 | catch (err) { 37 | stderr.write(`Error writing to output file: ${outputPath}\n`) 38 | process.exit(1) 39 | } 40 | } else { 41 | stdout.write(styles(configBlob)) 42 | } 43 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: Node CI 2 | 3 | # Push tests commits; pull_request tests PR merges 4 | on: [ push, pull_request ] 5 | 6 | defaults: 7 | run: 8 | shell: bash 9 | 10 | jobs: 11 | # ----- Only git tag testing + package publishing beyond this point ----- # 12 | 13 | # Publish to package registries 14 | publish: 15 | # Setup 16 | if: startsWith(github.ref, 'refs/tags/v') 17 | runs-on: ubuntu-latest 18 | 19 | # Go 20 | steps: 21 | - name: Check out repo 22 | uses: actions/checkout@v3 23 | 24 | - name: Set up Node.js 25 | uses: actions/setup-node@v3 26 | with: 27 | registry-url: https://registry.npmjs.org/ 28 | 29 | - name: Install 30 | run: npm ci 31 | 32 | # Publish to npm 33 | - name: Publish @RC to npm 34 | if: contains(github.ref, 'RC') 35 | run: npm publish --tag RC --access public 36 | env: 37 | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} 38 | 39 | - name: Publish @latest to npm 40 | if: contains(github.ref, 'RC') == false #'!contains()'' doesn't work lol 41 | run: npm publish --access public 42 | env: 43 | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} 44 | 45 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@enhance/styles", 3 | "version": "6.5.0", 4 | "description": "Functional utility classes", 5 | "main": "index.mjs", 6 | "type": "module", 7 | "module": "./dist/enhance.min.css", 8 | "bin": { 9 | "enhance-styles": "./cli.mjs" 10 | }, 11 | "style": "enhance.css", 12 | "scripts": { 13 | "build": "node ./cli.mjs > ./dist/enhance.css", 14 | "minify": "postcss ./dist/enhance.css > ./dist/enhance.min.css", 15 | "dist": "run-s build minify", 16 | "test": "tape './test/**/**.test.js' | tap-arc" 17 | }, 18 | "repository": { 19 | "type": "git", 20 | "url": "git+https://github.com/enhance-dev/enhance-styles.git" 21 | }, 22 | "keywords": [ 23 | "css", 24 | "enhance", 25 | "functional", 26 | "utility", 27 | "classes" 28 | ], 29 | "author": "@dam", 30 | "license": "Apache-2.0", 31 | "bugs": { 32 | "url": "https://github.com/enhance-dev/enhance-styles/issues" 33 | }, 34 | "homepage": "https://github.com/enhance-dev/enhance-styles#readme", 35 | "dependencies": { 36 | "color-to-hsla": "^0.1.1" 37 | }, 38 | "devDependencies": { 39 | "cssnano": "^5.0.14", 40 | "npm-run-all": "^4.1.5", 41 | "postcss-cli": "^9.1.0", 42 | "tap-arc": "^0.3.5", 43 | "tape": "^5.6.3" 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /test/font-size.test.js: -------------------------------------------------------------------------------- 1 | import test from 'tape' 2 | 3 | import fontSize from '../font-size.mjs' 4 | 5 | const stateWithNoTypeScale = { 6 | config: { 7 | typeScale: {} 8 | } 9 | } 10 | 11 | const stateWithTypeScale = { 12 | config: { 13 | typeScale: { 14 | steps: 8, 15 | } 16 | } 17 | } 18 | 19 | test('fontSize', t => { 20 | const noTypeScaleResult = fontSize(stateWithNoTypeScale) 21 | const noTypeScaleExpected = ` 22 | /*** Font Sizes ***/ 23 | .text-2{font-size:var(--text--2);} 24 | .text-1{font-size:var(--text--1);} 25 | .text0{font-size:var(--text-0);} 26 | .text1{font-size:var(--text-1);} 27 | .text2{font-size:var(--text-2);} 28 | .text3{font-size:var(--text-3);} 29 | .text4{font-size:var(--text-4);} 30 | .text5{font-size:var(--text-5);} 31 | ` 32 | 33 | const typeScaleResult = fontSize(stateWithTypeScale) 34 | const typeScaleExpected = ` 35 | /*** Font Sizes ***/ 36 | .text-2{font-size:var(--text--2);} 37 | .text-1{font-size:var(--text--1);} 38 | .text0{font-size:var(--text-0);} 39 | .text1{font-size:var(--text-1);} 40 | .text2{font-size:var(--text-2);} 41 | .text3{font-size:var(--text-3);} 42 | .text4{font-size:var(--text-4);} 43 | .text5{font-size:var(--text-5);} 44 | .text6{font-size:var(--text-6);} 45 | .text7{font-size:var(--text-7);} 46 | ` 47 | 48 | t.equal(noTypeScaleResult, noTypeScaleExpected, 'returns the default classes if no type config is provided') 49 | t.equal(typeScaleResult, typeScaleExpected, 'returns the expected classes if a type config is provided') 50 | t.end() 51 | }) 52 | -------------------------------------------------------------------------------- /background.mjs: -------------------------------------------------------------------------------- 1 | export default function background(state={}) { 2 | const { query='' } = state 3 | return /*css*/` 4 | /*** Background ***/ 5 | .bg-fixed${query}{background-attachment:fixed;} 6 | .bg-local${query}{background-attachment:local;} 7 | .bg-scroll${query}{background-attachment:scroll;} 8 | .bg-bottom${query}{background-position:bottom;} 9 | .bg-center${query}{background-position:center;} 10 | .bg-left${query}{background-position:left;} 11 | .bg-left-bottom${query}{background-position:left bottom;} 12 | .bg-left-top${query}{background-position:left top;} 13 | .bg-right${query}{background-position:right;} 14 | .bg-right-bottom${query}{background-position:right bottom;} 15 | .bg-right-top${query}{background-position:right top;} 16 | .bg-top${query}{background-position:top;} 17 | .bg-repeat${query}{background-repeat:repeat;} 18 | .bg-no-repeat${query}{background-repeat:no-repeat;} 19 | .bg-repeat-x${query}{background-repeat:repeat-x;} 20 | .bg-repeat-y${query}{background-repeat:repeat-y;} 21 | .bg-repeat-round${query}{background-repeat:round;} 22 | .bg-repeat-space${query}{background-repeat:space;} 23 | .bg-auto${query}{background-size:auto;} 24 | .bg-cover${query}{background-size:cover;} 25 | .bg-contain${query}{background-size:contain;} 26 | .bg-unset${query}{background-color:unset;} 27 | .bg-clip-border${query}{background-clip:border-box;} 28 | .bg-clip-content${query}{background-clip:content-box;} 29 | .bg-clip-padding${query}{background-clip:padding-box;} 30 | .bg-clip-text${query}{ 31 | background-clip:text; 32 | -webkit-background-clip:text; 33 | color:transparent; 34 | } 35 | ` 36 | } 37 | -------------------------------------------------------------------------------- /grid.mjs: -------------------------------------------------------------------------------- 1 | import rems from './rems.mjs' 2 | 3 | export default function grid(state={}) { 4 | const config = state.config || {} 5 | const grid = config.grid || {} 6 | const gridSteps = grid.steps || 12 7 | const gridHeights = grid.heights || [] 8 | const query = state.label || '' 9 | let output = /*css*/` 10 | /*** Grid ***/ 11 | .flow-row${query}{grid-auto-flow:row;} 12 | .flow-col${query}{grid-auto-flow:column;} 13 | .flow-row-dense${query}{grid-auto-flow:row dense;} 14 | .flow-column-dense${query}{grid-auto-flow:column dense;} 15 | .row-auto${query}{grid-row:auto;} 16 | .col-auto${query}{grid-column:auto;} 17 | .col-end-auto${query}{grid-column-end: auto;} 18 | .rows-end-auto${query}{grid-row-end:auto;} 19 | .rows-none${query}{grid-template-rows:none;} 20 | ` 21 | 22 | for (let i=1; i { 15 | const num = 1.5 16 | const goodString = 'perfect-fifth' 17 | const badString = 'porfict-fufth' 18 | const numResult = getRatioValue(num, 'test') 19 | const stringResult = getRatioValue(goodString, 'test') 20 | const shouldThrow = () => getRatioValue(badString, 'test') 21 | 22 | const numExpected = num 23 | const stringExpected = ratios[goodString] 24 | 25 | t.equal(numResult, numExpected, 'returns the correct ratio value when passed a number') 26 | t.equal(stringResult, stringExpected, 'returns the correct ratio value when passed a named ratio') 27 | t.throws(shouldThrow, null, 'throws an error if passed a string not matching any named ratios') 28 | t.end() 29 | }) 30 | 31 | test('roundToHundredths', t => { 32 | const input = [ 33 | 3.14159, 34 | 3.799, 35 | 3.40 36 | ] 37 | 38 | const expected = [ 39 | 3.14, 40 | 3.8, 41 | 3.4 42 | ] 43 | 44 | const result = input.map(n => roundToHundreths(n)) 45 | 46 | t.deepEqual(result, expected, 'rounds to the nearest hundredths decimal place') 47 | t.end() 48 | }) 49 | 50 | test('generateClamp', t => { 51 | const clampResult = generateClamp({ baseMinPx: 16, baseMaxPx: 20, viewportMinPx: 320, viewportMaxPx: 1500 }) 52 | const expectedResult = 'clamp(1rem, 0.93rem + 0.34vw, 1.25rem)' 53 | 54 | t.equal(clampResult, expectedResult, 'generates the expected clamp value') 55 | t.end() 56 | }) 57 | 58 | test('generateScaleProperties', t => { 59 | const testPrefix = 'test' 60 | const testSteps = [-2, -1, 0, 1, 2] 61 | const result = generateScaleProperties({ 62 | prefix: testPrefix, 63 | stepsArray: testSteps, 64 | baseMin: 16, 65 | baseMax: 20, 66 | viewportMin: 320, 67 | viewportMax: 1500, 68 | scaleMin: 1.2, 69 | scaleMax: 1.333, 70 | }) 71 | 72 | // Expected output via https://fluid-design-system.netlify.app/generate/320/16/minor-third/1500/20/perfect-fourth 73 | const expected = `--test--2: clamp(0.69rem, 0.69rem + 0.01vw, 0.7rem); 74 | --test--1: clamp(0.83rem, 0.8rem + 0.14vw, 0.94rem); 75 | --test-0: clamp(1rem, 0.93rem + 0.34vw, 1.25rem); 76 | --test-1: clamp(1.2rem, 1.07rem + 0.63vw, 1.67rem); 77 | --test-2: clamp(1.44rem, 1.23rem + 1.06vw, 2.22rem);` 78 | 79 | t.equal(result.trim(), expected.trim(), 'returns the expected custom properties for a fluid scale') 80 | t.end() 81 | }) 82 | 83 | test('getScalePropertyNames', t => { 84 | const properties = generateScaleProperties({ 85 | prefix: 'test', 86 | stepsArray: [-2, -1, 0, 1, 2], 87 | baseMin: 16, 88 | baseMax: 20, 89 | viewportMin: 320, 90 | viewportMax: 1500, 91 | scaleMin: 1.2, 92 | scaleMax: 1.333 93 | }) 94 | 95 | const result = getScalePropertyNames(properties) 96 | 97 | const expected = [ 98 | '--test--2', 99 | '--test--1', 100 | '--test-0', 101 | '--test-1', 102 | '--test-2' 103 | ] 104 | 105 | t.deepEqual(result, expected, 'returns the expected list of property names') 106 | t.end() 107 | }) 108 | 109 | test('generateTypeScaleProperties', t => { 110 | const steps = 4 111 | const properties = generateTypeScaleProperties({ steps }) 112 | const propertyNames = getScalePropertyNames(properties) 113 | const negatives = propertyNames.filter(p => p.includes('text--')) 114 | const basePlusPositives = propertyNames.filter(p => !p.includes('text--')) 115 | 116 | t.equal(propertyNames.length, steps + 2, 'produces the expected number of custom properties') 117 | t.equal(negatives.length, 2, 'includes two negative intervals') 118 | t.equal(basePlusPositives.length, steps, 'includes one base interval plus the expected number of positive intervals') 119 | t.end() 120 | }) 121 | 122 | test('generateSpaceScaleProperties', t => { 123 | const steps = 4 124 | const properties = generateSpaceScaleProperties({ steps }) 125 | const propertyNames = getScalePropertyNames(properties) 126 | 127 | const expectedPropertiesLength = steps * 2 - 1 // One base interval plus a symmetrical set of negative and positive intervals 128 | 129 | const negatives = propertyNames.filter(p => p.includes('space--')) 130 | const positives = propertyNames.filter(p => !p.includes('space--') && !p.includes('0')) 131 | const isSymmetrical = [ 132 | negatives.length, 133 | positives.length, 134 | ].every(n => n === steps - 1) 135 | 136 | t.equal(propertyNames.length, expectedPropertiesLength, 'produces the expected number of custom properties') 137 | t.ok(isSymmetrical, 'produces a symmetrical set of negative and positive intervals') 138 | t.end() 139 | }) 140 | -------------------------------------------------------------------------------- /theme-color.mjs: -------------------------------------------------------------------------------- 1 | import hextohsl from './hex-to-hsl.mjs' 2 | 3 | export default function themeColor({ config }) { 4 | const { color = {}, theme = {} } = config 5 | 6 | if (theme === false) { 7 | return '' 8 | } 9 | 10 | const defaultAccent = '#0075db' 11 | const defaultError = '#d60606' 12 | const defaultLight = '#fefefe' 13 | const defaultDark = '#222222' 14 | 15 | const light = color.light || theme.back || defaultLight 16 | const dark = color.dark || theme.fore || defaultDark 17 | const lightParts = hextohsl(light) 18 | const darkTheme = theme?.dark || {} 19 | 20 | const lightAccent = theme?.accent || defaultAccent 21 | const lightAccentParts = hextohsl(lightAccent) 22 | const darkAccent = theme?.dark?.accent || theme?.accent || defaultAccent 23 | const darkAccentParts = hextohsl(darkAccent) 24 | 25 | // If no custom dark accent colour provided, modify default accent's lightness for dark mode 26 | if (darkAccent === lightAccent || darkAccent === defaultAccent) { 27 | darkAccentParts.l = 62 28 | } 29 | 30 | const lightError = theme?.error || defaultError 31 | const lightErrorParts = hextohsl(lightError) 32 | const darkError = theme?.dark?.error || theme?.error || defaultError 33 | const darkErrorParts = hextohsl(darkError) 34 | 35 | // If no custom dark error colour provided, modify default error's lightness for dark mode 36 | if (darkError === lightError || darkError === defaultError) { 37 | darkErrorParts.l = 62 38 | } 39 | 40 | const darkThemeColors = Object.keys(darkTheme).map(name => { 41 | return `--${name}: ${darkTheme[name]};` 42 | }).join('\n') 43 | 44 | const themeColors = Object.keys(theme).map(name => { 45 | if (name === 'accent' || 46 | name === 'error' || 47 | name === 'back' || 48 | name === 'fore' || 49 | (name === 'dark' && typeof theme[name] === 'object')) { 50 | return 51 | } 52 | else { 53 | return colorSteps(hextohsl(theme[name]), name) 54 | } 55 | }).join('\n') 56 | const colors = Object.keys(color).length ? Object.keys(color).map(name => `--${name}: ${color[name]};`).join('\n ') : '' 57 | const grayScale = colorSteps({ h: lightParts.h, s: 0, l: 50 }, 'gray') 58 | 59 | function colorSteps(color, name) { 60 | const hue = color.h 61 | const saturation = color.s 62 | const luminance = color.l 63 | 64 | return ` 65 | --${name}-100: hsl(${hue}, ${saturation}%, ${Math.floor(luminance + 40)}%); 66 | --${name}-200: hsl(${hue}, ${saturation}%, ${Math.floor(luminance + 30)}%); 67 | --${name}-300: hsl(${hue}, ${saturation}%, ${Math.floor(luminance + 20)}%); 68 | --${name}-400: hsl(${hue}, ${saturation}%, ${Math.floor(luminance + 10)}%); 69 | --${name}-500: hsl(${hue}, ${saturation}%, ${luminance}%); 70 | --${name}-600: hsl(${hue}, ${saturation}%, ${Math.floor(luminance - 10)}%); 71 | --${name}-700: hsl(${hue}, ${saturation}%, ${Math.floor(luminance - 20)}%); 72 | --${name}-800: hsl(${hue}, ${saturation}%, ${Math.floor(luminance - 30)}%); 73 | --${name}-900: hsl(${hue}, ${saturation}%, ${Math.floor(luminance - 40)}%);` 74 | } 75 | 76 | const themeStyles = ` 77 | /*** Theme Colors ***/ 78 | :root { 79 | --accent-h: ${lightAccentParts.h}; 80 | --accent-s: ${lightAccentParts.s}%; 81 | --accent-l: ${lightAccentParts.l}%; 82 | --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l)); 83 | --light: ${light}; 84 | --dark: ${dark}; 85 | --fore: var(--dark, currentColor); 86 | --back: var(--light); 87 | --error-h: ${lightErrorParts.h}; 88 | --error-s: ${lightErrorParts.s}%; 89 | --error-l: ${lightErrorParts.l}%; 90 | --error: hsl(var(--error-h), var(--error-s), var(--error-l)); 91 | ${themeColors} 92 | ${grayScale} 93 | --focus-l: 30%; 94 | accent-color: var(--accent, royalblue); 95 | color-scheme: light dark; 96 | } 97 | 98 | :is(a, button, input, textarea, summary):focus:not(:focus-visible) { 99 | outline: none; 100 | } 101 | 102 | :is(a, button, input, textarea, summary):focus-visible { 103 | outline: max(var(--focus-size, 1px), 1px) solid var(--accent, royalblue); 104 | outline-offset: var(--focus-offset, 0); 105 | box-shadow: 0 0 0 max(var(--focus-size, 3px), 3px) hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) + var(--focus-l))) 106 | ; 107 | } 108 | 109 | :is(a, button, input, textarea, summary):not(:focus):not(:placeholder-shown):invalid { 110 | outline: max(var(--focus-size, 1px), 1px) solid var(--error, crimson); 111 | outline-offset: var(--focus-offset, 0); 112 | box-shadow: 0 0 0 3px hsl(var(--error-h), var(--error-s), calc(var(--error-l) + var(--focus-l))); 113 | } 114 | 115 | @media (prefers-color-scheme: dark) { 116 | :root { 117 | --accent-h: ${darkAccentParts.h}; 118 | --accent-s: ${darkAccentParts.s}%; 119 | --accent-l: ${darkAccentParts.l}%; 120 | --error-h: ${darkErrorParts.h}; 121 | --error-s: ${darkErrorParts.s}%; 122 | --error-l: ${darkErrorParts.l}%; 123 | --focus-l: -30%; 124 | --fore: var(--light); 125 | --back: var(--dark); 126 | ${darkThemeColors} 127 | } 128 | } 129 | `.replace(/^\s*\n/gm, '') // remove empty newlines 130 | 131 | const colorStyles = ` 132 | /*** Spot Colors ***/ 133 | :root { 134 | ${colors} 135 | } 136 | ` 137 | 138 | let result = `` 139 | if (theme !== false) result += themeStyles 140 | if (Object.keys(color).length) result += colorStyles 141 | 142 | return result 143 | } 144 | 145 | -------------------------------------------------------------------------------- /lib/scales.mjs: -------------------------------------------------------------------------------- 1 | /* 2 | * Adapted from https://github.com/georgedoescode/fluid-design-system-on-demand-builders 3 | * …which in turn is based on https://utopia.fyi 4 | */ 5 | 6 | export const ratios = { 7 | 'minor-second': 1.067, 8 | 'major-second': 1.125, 9 | 'minor-third': 1.2, 10 | 'major-third': 1.25, 11 | 'perfect-fourth': 1.333, 12 | 'augmented-fourth': 1.414, 13 | 'perfect-fifth': 1.5, 14 | 'golden-ratio': 1.618, 15 | 'major-sixth': 1.667, 16 | 'minor-seventh': 1.778, 17 | 'major-seventh': 1.875, 18 | octave: 2, 19 | } 20 | 21 | const defaultConfig = { 22 | steps: 6, 23 | viewportMin: 320, 24 | viewportMax: 1500, 25 | baseMin: 16, 26 | baseMax: 18, 27 | scaleMin: 'minor-third', 28 | scaleMax: 'perfect-fourth', 29 | } 30 | 31 | /** 32 | * @param {(string|number)} ratio - A named ratio or a rational number 33 | * @param {string} scaleProperty - The scale property the ratio value will be used for; used in error reporting only 34 | * @returns {number} The ratio value as a rational number 35 | */ 36 | export function getRatioValue(ratio, scaleProperty) { 37 | // Config provided a rational number for the ratio 38 | if (typeof ratio === 'number') return ratio 39 | 40 | // Config provided a named ratio 41 | if (ratios[ratio]) return ratios[ratio] 42 | 43 | // Sad trombone 44 | throw new Error(`Value provided for ${scaleProperty} must be a rational number or a named ratio: ${Object.keys(ratios).join(', ')}`) 45 | } 46 | 47 | // Rounds to the nearest 2 decimal places 48 | // e.g. roundToHundredths(4.894) = 4.89 49 | // roundToHundredths(4.896) = 4.90 50 | /** 51 | * @param {number} num - The number to apply rounding to 52 | * @returns {number} The supplied number rounded to the nearest hundredths decimal place 53 | */ 54 | export function roundToHundreths(num) { 55 | return Math.round(num * 100) / 100 56 | } 57 | 58 | /** 59 | * @param {Object} config - The configuration object 60 | * @param {number} config.baseMinPx - The base size, in pixels, at the minimum viewport width 61 | * @param {number} config.baseMaxPx - The base size, in pixels, at the maximum viewport width 62 | * @param {number} config.viewportMinPx - The width, in pixels, of the minimum viewport 63 | * @param {number} config.viewportMaxPx - The width, in pixels, of the maximum viewport 64 | * @returns {string} The CSS `clamp` value to be used 65 | */ 66 | export function generateClamp({ 67 | baseMinPx, 68 | baseMaxPx, 69 | viewportMinPx, 70 | viewportMaxPx, 71 | }) { 72 | const pixelsPerRem = 16 73 | 74 | const viewportMinRem = viewportMinPx / pixelsPerRem 75 | const viewportMaxRem = viewportMaxPx / pixelsPerRem 76 | 77 | const baseMinRem = baseMinPx / pixelsPerRem 78 | const baseMaxRem = baseMaxPx / pixelsPerRem 79 | 80 | const slope = (baseMaxRem - baseMinRem) / (viewportMaxRem - viewportMinRem) 81 | const yIntersection = -viewportMinRem * slope + baseMinRem 82 | 83 | const min = `${roundToHundreths(baseMinRem)}rem` 84 | const preferred = `${roundToHundreths(yIntersection)}rem + ${roundToHundreths(slope * 100)}vw` 85 | const max = `${roundToHundreths(baseMaxRem)}rem` 86 | 87 | return `clamp(${min}, ${preferred}, ${max})` 88 | } 89 | 90 | /** 91 | * Type and space scales differ in kind only by their custom property prefixes and the shape of their steps array. 92 | * This function does the majority of the work for generating the actual custom properties. 93 | * @param {Object} config - The configuration object 94 | * @param {string} config.prefix - The string to prefix custom property names with 95 | * @param {number[]} config.stepsArray - The list of steps on which to iterate 96 | * @param {number} config.baseMin - The base size, in pixels, at the minimum viewport width 97 | * @param {number} config.baseMax - The base size, in pixels, at the maximum viewport width 98 | * @param {number|string} config.scaleMin - The ratio, either as a rational number or a named ratio, to use at the minimum viewport width 99 | * @param {number|string} config.scaleMax - The ratio, either as a rational number or a named ratio, to use at the maximum viewport width 100 | * @param {number} config.viewportMin - The width, in pixels, of the minimum viewport 101 | * @param {number} config.viewportMax - The width, in pixels, of the maximum viewport 102 | * @returns {string} The CSS custom properties for the fluid scale 103 | */ 104 | export function generateScaleProperties({ 105 | prefix, 106 | stepsArray, 107 | baseMin, 108 | baseMax, 109 | scaleMin, 110 | scaleMax, 111 | viewportMin, 112 | viewportMax, 113 | }) { 114 | const scaleMinValue = getRatioValue(scaleMin, 'typeScale.scaleMin') 115 | const scaleMaxValue = getRatioValue(scaleMax, 'typeScale.scaleMax') 116 | 117 | const clampSteps = stepsArray.reduce((clampSteps, step) => { 118 | return [ 119 | ...clampSteps, 120 | {[step]: generateClamp({ 121 | baseMinPx: roundToHundreths(baseMin * Math.pow(scaleMinValue, step)), 122 | baseMaxPx: roundToHundreths(baseMax * Math.pow(scaleMaxValue, step)), 123 | viewportMinPx: viewportMin, 124 | viewportMaxPx: viewportMax, 125 | })} 126 | ] 127 | }, []) 128 | 129 | let css = `` 130 | 131 | clampSteps.forEach(step => { 132 | const [[k, v]] = Object.entries(step) 133 | css += `--${prefix}-${k}: ${v};\n` 134 | }) 135 | 136 | return css 137 | } 138 | 139 | /** 140 | * @param {string} scaleOutput - The output from an invocation of `generateScaleProperties` 141 | * @returns {string[]} An array with each property name as an index 142 | */ 143 | export function getScalePropertyNames(scaleOutput) { 144 | const scalePropertyNames = scaleOutput 145 | .split('\n') 146 | .filter(p => p !== '') // remove output's final newline 147 | .map(p => p.substring(0, p.indexOf(':'))) // removes colon and property value 148 | 149 | return scalePropertyNames 150 | } 151 | 152 | /** 153 | * @param {Object} [config] - The configuration object 154 | * @param {number} [config.steps=6] - The number of positive intervals, including the base size, for the type scale (two negative intervals added automatically) 155 | * @param {number} [config.baseMin=16] - The base font size, in pixels, at the minimum viewport width 156 | * @param {number} [config.baseMax=18] - The base font size, in pixels, at the maximum viewport width 157 | * @param {number|string} [config.scaleMin=minor-third] - The ratio, either as a number or a named ratio, to use at the minimum viewport width 158 | * @param {number|string} [config.scaleMax=perfect-fourth] - The ratio, either as a number or a named ratio, to use at the maximum viewport width 159 | * @param {number} [config.viewportMin=320] - The width, in pixels, of the minimum viewport 160 | * @param {number} [config.viewportMax=1500] - The width, in pixels, of the maximum viewport 161 | * @returns {string} The CSS custom properties for the fluid type scale 162 | */ 163 | export function generateTypeScaleProperties({ 164 | steps = defaultConfig.steps, 165 | baseMin = defaultConfig.baseMin, 166 | baseMax = defaultConfig.baseMax, 167 | scaleMin = defaultConfig.scaleMin, 168 | scaleMax = defaultConfig.scaleMax, 169 | viewportMin = defaultConfig.viewportMin, 170 | viewportMax = defaultConfig.viewportMax, 171 | } = {}) { 172 | // Type scales do not have equivalent postive and negative intervals, as beyond a couple negative integers type becomes illegible 173 | const typeSteps = [ 174 | -2, 175 | -1, 176 | ...Array(steps).keys() 177 | ] 178 | 179 | return generateScaleProperties({ 180 | prefix: 'text', 181 | stepsArray: typeSteps, 182 | baseMin, 183 | baseMax, 184 | scaleMin, 185 | scaleMax, 186 | viewportMin, 187 | viewportMax, 188 | }) 189 | } 190 | 191 | /** 192 | * @param {Object} [config] - The configuration object 193 | * @param {number} [config.steps=6] - The number of symmetrical intervals to create for the space scale, plus the base size 194 | * @param {number} [config.baseMin=16] - The base size, in pixels, at the minimum viewport width 195 | * @param {number} [config.baseMax=18] - The base size, in pixels, at the maximum viewport width 196 | * @param {number|string} [config.scaleMin=minor-third] - The ratio, either as a rational number or a named ratio, to use at the minimum viewport width 197 | * @param {number|string} [config.scaleMax=perfect-fourth] - The ratio, either as a rational number or a named ratio, to use at the maximum viewport width 198 | * @param {number} [config.viewportMin=320] - The width, in pixels, of the minimum viewport 199 | * @param {number} [config.viewportMax=1500] - The width, in pixels, of the maximum viewport 200 | * @returns {string} The CSS custom properties for the fluid space scale 201 | */ 202 | export function generateSpaceScaleProperties({ 203 | steps = defaultConfig.steps, 204 | baseMin = defaultConfig.baseMin, 205 | baseMax = defaultConfig.baseMax, 206 | scaleMin = defaultConfig.scaleMin, 207 | scaleMax = defaultConfig.scaleMax, 208 | viewportMin = defaultConfig.viewportMin, 209 | viewportMax = defaultConfig.viewportMax, 210 | } = {}) { 211 | // Space scales contain positive and negative intervals in equal measure, plus the base interval 212 | const basePlusPositives = [...Array(steps).keys()] 213 | const negatives = [...Array(steps).keys()] 214 | .filter(n => n !== 0) 215 | .map(n => -n) 216 | .reverse() 217 | 218 | const spaceSteps = [ 219 | ...negatives, 220 | ...basePlusPositives 221 | ] 222 | 223 | return generateScaleProperties({ 224 | prefix: 'space', 225 | stepsArray: spaceSteps, 226 | baseMin, 227 | baseMax, 228 | scaleMin, 229 | scaleMax, 230 | viewportMin, 231 | viewportMax, 232 | }) 233 | } 234 | 235 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # enhance-styles 2 | Single responsibility CSS classes — optimized for [Enhance](https://enhance.dev) and the web at large. 3 | 4 | ## Usage in Enhance apps 5 | 6 | All new Enhance projects come preloaded with Enhance Styles; no installation is required. 7 | 8 | To customize Enhance Styles within your Enhance application, see [the Customize section](#customize). 9 | 10 | See [the standalone usage section](#standalone-usage) section for instructions on using Enhance Styles outside of Enhance apps. 11 | 12 | ## Notable concepts 13 | 14 | Several aspects of Enhance Styles may be different from other CSS methodologies or frameworks you’ve used before. These are described briefly below; for more in depth documentation, refer to [the Enhance Styles docs on Enhance.dev](https://enhance.dev/docs/enhance-styles/). 15 | 16 | ### Logical properties 17 | 18 | [CSS logical properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties) are logical alternatives to layout based properties and values that were previously expressed imperatively (or 'physically') in CSS. For example, the block and inline directions provide a logical alternative to the top/bottom and left/right directions, in order to account for different writing modes. 19 | 20 | Enhance Styles uses logical properties in its utility classes for margins, padding, borders, insets, width, height, and text alignment. 21 | 22 | ### Fluid type and spacing 23 | 24 | Fluid type size and spacing allows fonts, margins, padding, and other aspects of layouts to scale in size gradually across a fluid range of viewport sizes, as opposed to changing suddenly at discrete breakpoints via media queries. This approach has been popularized by tools like [Utopia](https://utopia.fyi/). Using fluid type and spacing can reduce the amount of CSS you need to write. It especially reduces the amount of adjustments needing to be made at arbitrary viewport sizes. Of course, this strategy requires alignment between designers and developers; [the Utopia blog](https://utopia.fyi/blog) has some great reading on this subject. 25 | 26 | Enhance Styles uses fluid units in its utility classes for font sizes, margins, padding, and gaps (for use in flexbox and grid layouts). We also emit custom properties for each step of the type and space scales. 27 | 28 | The key concepts to be aware of are: 29 | 30 | - **Steps**: Type and space scales contain a configurable number of steps. This number should be large enough to provide the designer and developer with a sufficient range of options for setting type size and negative space, but not so large that an excessive number of unused steps are generated (as this will bloat the CSS bundle and cause confusion for implementers). 31 | - **Viewport widths**: Type and space scale values will only be fluidly interpolated between a declared minimum and maximum viewport width. Beyond these boundary sizes, the scale values will remain at their respective minimum and maximum sizes. 32 | - **Base size**: The base (or starting) value to use for the scale. Each step on the scale will get larger than this size (or smaller, for negative steps) by an amount dictated by the current viewport width and the minimum and maximum scale factors. 33 | - **Scale factors**: The ratio at which each value in the scale grows (or shrinks) from the previous step. Larger ratios produce larger differences between each step. At the minimum viewport width, the minimum scaling factor will be used; at the maximum viewport width, the maximum scaling factor will be used. Between the minimum and maximum viewports, the scale factor will be interpolated between its minimum and maximum values, based on the viewport width. 34 | 35 | For Enhance Styles' configuration, the scale factors can be set using any [rational number](https://www.mathsisfun.com/rational-numbers.html). For convenience, the following [named ratios](https://24ways.org/2011/composing-the-new-canon) may be also be used: 36 | 37 | | Named ratio | As a rational number | 38 | |-|-| 39 | | `minor-second`| 1.067 | 40 | | `major-second`| 1.125 | 41 | | `minor-third`| 1.2 | 42 | | `major-third`| 1.25 | 43 | | `perfect-fourth`| 1.333 | 44 | | `augmented-fourth`| 1.414 | 45 | | `perfect-fifth`| 1.5 | 46 | | `golden-ratio`| 1.618 | 47 | | `major-sixth`| 1.667 | 48 | | `minor-seventh`| 1.778 | 49 | | `major-seventh`| 1.875 | 50 | | `octave`| 2 | 51 | 52 | ## Customize 53 | 54 | Within an Enhance application, first add a `styleguide.json` JSON config file (or choose another name) at the root of your Enhance project. You can copy [the default configuration](https://github.com/enhance-dev/enhance-styles/blob/main/config.json) to get started. See individual sections below for more information on configuring these options. 55 | 56 | Next, edit your project’s `.arc` file to tell Enhance Styles where to find this config file by including the following: 57 | 58 | ```arc 59 | @enhance-styles 60 | config styleguide.json 61 | ``` 62 | 63 | Enhance Styles will now use this configuration to customize its generated styles. 64 | 65 | ### `typeScale` 66 | 67 | The configuration for the fluid typographic scale. Affects font size classes and the respective custom properties referenced by those classes. 68 | 69 | **Note: Enhance Styles will automatically assign the generated base step in this scale (`var(--text0)`) to the `body` font size.** 70 | 71 | Configuration options are: 72 | 73 | - **`steps`** (default: `6`): The number of steps, including the base font size, to be used for the type scale. **Two negative steps will be generated** for setting type at sub-body sizes. (We do not currently generate additional negative steps as this often results in type that is far too small to read.) 74 | - **`viewportMin`** (default: `320`): The minimum viewport width, in pixels. Font sizes will not decrease at viewports narrower than this width. 75 | - **`viewportMax`** (default: `1500`): The maximum viewport width, in pixels. Font sizes will not increase at viewports wider than this width. 76 | - **`baseMin`** (default: `16`): The base font size, in pixels, to be used at the minimum viewport width. 77 | - **`baseMax`** (default: `18`): The base font size, in pixels, to be used at the maximum viewport width. 78 | - **`scaleMin`** (default: `"minor-third"`): The minimum scaling factor, either as a rational number or a named ratio, to be used for computing all steps above and below the base font size, at the minimum viewport width. 79 | - **`scaleMax`** (default: `"perfect-fourth"`): The maximum scaling factor, either as a rational number or a named ratio, to be used for computing all steps above and below the base font size, at the maximum viewport width. 80 | 81 | ### `spaceScale` 82 | 83 | The configuration for the fluid spacing scale. Affects margin, padding, and gap classes and the respective custom properties referenced by those classes. 84 | 85 | Configuration options are: 86 | 87 | - **`steps`** (default: `6`): The number of steps, including the base step, to be used for the space scale. **A symmetric number of positive and negative steps will be generated** (for example, 6 steps would generate 1 base step, 5 positive steps, and 5 negative steps). 88 | - **`viewportMin`** (default: `320`): The minimum viewport width, in pixels. Spacing sizes will not decrease at viewports narrower than this width. 89 | - **`viewportMax`** (default: `1500`): The maximum viewport width, in pixels. Spacing sizes will not increase at viewports wider than this width. 90 | - **`baseMin`** (default: `16`): The base spacing size, in pixels, to be used at the minimum viewport width. 91 | - **`baseMax`** (default: `18`): The base spacing size, in pixels, to be used at the maximum viewport width. 92 | - **`scaleMin`** (default: `"minor-third"`): The minimum scaling factor, either as a rational number or a named ratio, to be used for computing all steps above and below the base size, at the minimum viewport width. 93 | - **`scaleMax`** (default: `"perfect-fourth"`): The maximum scaling factor, either as a rational number or a named ratio, to be used for computing all steps above and below the base size, at the maximum viewport width. 94 | 95 | ### `fonts` 96 | `fonts` are the font stacks you wish to use. They can be named however you like, but it is recommended to retain a sans-serif, a serif and a mono stack for most pages. 97 | 98 | The default stacks are: 99 | 100 | - sans "system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif" 101 | - serif "Georgia,Cambria,Times New Roman,Times,serif" 102 | - mono "Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace" 103 | 104 | ### `theme` 105 | `theme` is the set of theme colors. 106 | Colors must be hexidecimal. 107 | Colors can be named however you like. 108 | Colors included in the theme setting will have a color scale generated. 109 | It is recommended to pick a color, then choose a middle lightness as the basis of the scale so as to maximize the amount of steps in the scale that are not white or black. 110 | You can choose your naming convention. 111 | Bootstrap-like themes will use generic names such as "primary". 112 | Material-like themes will choose a theme color name i.e. "indigo". 113 | 114 | #### Light / dark theme support 115 | Enhance styles supports native light / dark theme mode by default and allows you to override and augment the colors used. 116 | 117 | Light / dark theme support can be overridden by specifying: 118 | 119 | - `fore` the foreground color to be used as the default text and border color. You can also specify a `dark` property in the color section to override. 120 | - `back` the default light theme background color, defaults to white and can be overridden by setting a `light` value in the color section. 121 | - `accent` will be set as the [`accent-color`](https://developer.mozilla.org/en-US/docs/Web/CSS/accent-color) for the document and will be reflected in input and focus styling. This will generate `--accent`, `--accent-h` ( hue ), `--accent-s` ( saturation ), and `--accent-l` ( lightness ) custom properties for you to use in styles. 122 | - `error` will be set as the error color for the document and will be reflected in input and validation styling. This will generate `--error`, `--error-h` ( hue ), `--error-s` ( saturation ), and `--error-l` ( lightness ) custom properties for you to use in styles. 123 | 124 | You can add overrides for the dark theme by making an object with the key `dark` inside the theme section and adding colors there. The result will be output into a `@media (prefers-color-scheme: dark)` style block to enable overrides when the user has their preference set to dark. 125 | 126 | #### Examples 127 | Setting default light / dark theme colors: 128 | 129 | ```json 130 | "theme": { 131 | "accent": "#0075db", 132 | "error": "#d60505", 133 | "back": "#fefefe", 134 | "fore": "#222222" 135 | }, 136 | ``` 137 | 138 | ##### Overriding default light theme colors for dark mode 139 | A default dark theme will be generated from the default light theme, so this is optional. 140 | 141 | ```json 142 | "theme": { 143 | "accent": "#0075db", 144 | "error": "#d60505", 145 | "back": "#fefefe", 146 | "fore": "#222222" 147 | "dark": { 148 | "accent": "#0088ff", 149 | "error": "#ff3d3d" 150 | } 151 | }, 152 | ``` 153 | 154 | ##### Restoring default theme colors 155 | If you want to restore the default theme colors, copy and paste the code below into your `styleguide.json`: 156 | 157 | ```json 158 | "theme": { 159 | "accent": "#007AFF", 160 | "accent-cotrast": "#fff", 161 | "light": "#f8f9fa", 162 | "dark": "#343a40", 163 | "primary": "#007bff", 164 | "secondary": "#6c757d", 165 | "success": "#28a745", 166 | "info": "#17a2b8", 167 | "warning": "#ffc107", 168 | "error": "#dc3545" 169 | } 170 | ``` 171 | 172 | Theme scales are intended to give you enough colors for all use cases including hover, disabled, active and visited states. 173 | 174 | ##### Example color theme scale 175 | ```css 176 | --primary-100: hsl(212, 74.7%, 88%); 177 | --primary-200: hsl(212, 74.7%, 78%); 178 | --primary-300: hsl(212, 74.7%, 68%); 179 | --primary-400: hsl(212, 74.7%, 58%); 180 | --primary-500: hsl(212, 74.7%, 48%); 181 | --primary-600: hsl(212, 74.7%, 38%); 182 | --primary-700: hsl(212, 74.7%, 28%); 183 | --primary-800: hsl(212, 74.7%, 18%); 184 | --primary-900: hsl(212, 74.7%, 8%); 185 | ``` 186 | 187 | ### Opting out of theme styles 188 | 189 | The classes and custom properties generated by the `theme` configuration are optional, and can be excluded by setting the `theme` property in your styleguide to `false`: 190 | 191 | ```json 192 | { 193 | "theme": false 194 | } 195 | ``` 196 | 197 | ### `color` 198 | `color` is for one off spot colors. Colors must be specified as hexidecimal and can be named however you like. For example: 199 | 200 | `"crimson": "#eb0052"` 201 | 202 | ### `grid` 203 | `grid` contains the settings for CSS grid classes. 204 | 205 | - `steps` are the amount of sections you want in your grid. Default is 6. 206 | 207 | ### `properties` 208 | `properties` is an object of named value custom properties. These can be used to supply variables for anything from drop shadows to animations. [Some inspiration](https://open-props.style/) 209 | 210 | ### `queries` 211 | `queries` are the units for `min-width` media queries. This encourages a mobile first approach to styling. Start by making your mobile, single-column layout then resize your browser wider and only add media queries when your design requires it. Labels for the the sizes will be appended to the class names inside the media query block. i.e. `static-lg`. This allows you to add all the classes for every breakpoint and the classes will be overriden as the browser resizes. The default is `"lg": "48em"` 212 | 213 | ### `borders` 214 | `borders` are settings for borders. 215 | - `widths` is an array of border widths. The defaults are 1, 2, and 4 216 | 217 | ### `radii` 218 | `radii` is an array of border radii. The defaults are 2, 8, 16, and 9999 ( for use with pill buttons ) 219 | 220 | ### `reset` 221 | 222 | Enhance Styles includes a CSS reset by default. To opt out of this reset being included in the stylesheet emitted by Enhance Styles, add the following to your configuration: 223 | 224 | ```json 225 | { 226 | "reset": false 227 | } 228 | ``` 229 | 230 | ## Standalone usage 231 | 232 | To use Enhance Styles in other applications or frameworks, install Enhance Styles from npm: 233 | 234 | ```shell 235 | npm i -D @enhance/styles 236 | ``` 237 | 238 | The built in CLI, `enhance-styles`, takes two arguments: `--config=` and `--output=`. The `--config` argument is the path to your configuration file and the `--output` argument is the path where the .css file will be created. 239 | 240 | If you do not specify config, the default configuration will be used. 241 | You can use the default configuration or [create your own](#customize). We recommend a local project file like `./styleguide.json`. 242 | 243 | If you do not specify output, the CSS will be printed to stdout. 244 | 245 | ```shell 246 | npx enhance-styles --config=./styleguide.json --output=./public/enhance.css 247 | ``` 248 | 249 | Or add it as a script to your package.json: 250 | 251 | ```json 252 | { 253 | "scripts": { 254 | "enhance-styles": "enhance-styles --config=./styleguide.json --output=./public/enhance.css" 255 | } 256 | } 257 | ``` 258 | 259 | Then run: 260 | 261 | ```shell 262 | npm run enhance-styles 263 | ``` 264 | 265 | If you'd like, minification can be added as a part of your build process. 266 | 267 | ## Prior art 268 | 269 | Enhance styles would not exist without the breakthrough thinking of [Adam Morse](https://mrmrs.cc/) who realized that creating a capped size stylesheet with common, single use, low specificity classes results in better performance and maintanance than append only stylesheets that can only grow as more features are added. His CSS work can be seen in [Tachyons](https://tachyons.io/). 270 | 271 | 272 | Much of the implementation of our fluid scales was adapted from [@georgedoescode/fluid-design-system-on-demand-builders](https://github.com/georgedoescode/fluid-design-system-on-demand-builders), which was itself adapted from [Utopia](https://utopia.fyi). 273 | -------------------------------------------------------------------------------- /dist/enhance.min.css: -------------------------------------------------------------------------------- 1 | :root{--accent-h:208;--accent-s:100%;--accent-l:42.9%;--accent:hsl(var(--accent-h),var(--accent-s),var(--accent-l));--light:#fefefe;--dark:#222;--fore:var(--dark,currentColor);--back:var(--light);--error-h:0;--error-s:94.5%;--error-l:43.1%;--error:hsl(var(--error-h),var(--error-s),var(--error-l));--gray-100:#e6e6e6;--gray-200:#ccc;--gray-300:#b3b3b3;--gray-400:#999;--gray-500:grey;--gray-600:#666;--gray-700:#4d4d4d;--gray-800:#333;--gray-900:#1a1a1a;--focus-l:30%;accent-color:var(--accent,#4169e1);color-scheme:light dark}:is(a,button,input,textarea,summary):focus:not(:focus-visible){outline:none}:is(a,button,input,textarea,summary):focus-visible{box-shadow:0 0 0 max(var(--focus-size,3px),3px) hsl(var(--accent-h),var(--accent-s),calc(var(--accent-l) + var(--focus-l)));outline:max(var(--focus-size,1px),1px) solid var(--accent,#4169e1);outline-offset:var(--focus-offset,0)}:is(a,button,input,textarea,summary):not(:focus):not(:placeholder-shown):invalid{box-shadow:0 0 0 3px hsl(var(--error-h),var(--error-s),calc(var(--error-l) + var(--focus-l)));outline:max(var(--focus-size,1px),1px) solid var(--error,crimson);outline-offset:var(--focus-offset,0)}@media (prefers-color-scheme:dark){:root{--accent-h:208;--accent-s:100%;--accent-l:62%;--error-h:0;--error-s:94.5%;--error-l:62%;--focus-l:-30%;--fore:var(--light);--back:var(--dark)}}:root{--text--2:clamp(0.69rem,0.71rem + -0.08vw,0.63rem);--text--1:clamp(0.83rem,0.83rem + 0.01vw,0.84rem);--text-0:clamp(1rem,0.97rem + 0.17vw,1.13rem);--text-1:clamp(1.2rem,1.12rem + 0.41vw,1.5rem);--text-2:clamp(1.44rem,1.29rem + 0.76vw,2rem);--text-3:clamp(1.73rem,1.47rem + 1.27vw,2.66rem);--text-4:clamp(2.07rem,1.67rem + 2vw,3.55rem);--text-5:clamp(2.49rem,1.88rem + 3.05vw,4.74rem);--space--5:clamp(0.4rem,0.44rem + -0.18vw,0.27rem);--space--4:clamp(0.48rem,0.52rem + -0.17vw,0.36rem);--space--3:clamp(0.58rem,0.61rem + -0.14vw,0.48rem);--space--2:clamp(0.69rem,0.71rem + -0.08vw,0.63rem);--space--1:clamp(0.83rem,0.83rem + 0.01vw,0.84rem);--space-0:clamp(1rem,0.97rem + 0.17vw,1.13rem);--space-1:clamp(1.2rem,1.12rem + 0.41vw,1.5rem);--space-2:clamp(1.44rem,1.29rem + 0.76vw,2rem);--space-3:clamp(1.73rem,1.47rem + 1.27vw,2.66rem);--space-4:clamp(2.07rem,1.67rem + 2vw,3.55rem);--space-5:clamp(2.49rem,1.88rem + 3.05vw,4.74rem)}*,:after,:before{box-sizing:border-box}*{border:0 solid transparent;margin:0;padding:0}html:focus-within{scroll-behavior:smooth}audio,canvas,embed,iframe,img,object,picture,svg,video{display:block;max-width:100%}img,picture,svg,video{block-size:auto}button,input,select,textarea{color:inherit;font:inherit;line-height:inherit}a{color:inherit;cursor:pointer;text-decoration:inherit}a:not([class]){text-decoration-skip-ink:auto}[role=button],button{background-color:transparent;cursor:pointer}code{font:inherit;font-size:inherit}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}ol[role=list],ul[role=list]{list-style:none}table{border-collapse:collapse;border-spacing:0}textarea{overflow:auto;vertical-align:top}dialog{margin:auto}@media (prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,:after,:before{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}html{font-size:100%}.font-sans{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif}.font-serif{font-family:Georgia,Cambria,Times New Roman,Times,serif}.font-mono{font-family:Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}body{text-rendering:optimizeSpeed;font-size:var(--text-0);font-weight:400;line-height:1}.font-smoothing{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.bg-fixed{background-attachment:fixed}.bg-local{background-attachment:local}.bg-scroll{background-attachment:scroll}.bg-bottom{background-position:bottom}.bg-center{background-position:50%}.bg-left{background-position:0}.bg-left-bottom{background-position:0 100%}.bg-left-top{background-position:0 0}.bg-right{background-position:100%}.bg-right-bottom{background-position:100% 100%}.bg-right-top{background-position:100% 0}.bg-top{background-position:top}.bg-repeat{background-repeat:repeat}.bg-no-repeat{background-repeat:no-repeat}.bg-repeat-x{background-repeat:repeat-x}.bg-repeat-y{background-repeat:repeat-y}.bg-repeat-round{background-repeat:round}.bg-repeat-space{background-repeat:space}.bg-auto{background-size:auto}.bg-cover{background-size:cover}.bg-contain{background-size:contain}.bg-unset{background-color:unset}.bg-clip-border{background-clip:border-box}.bg-clip-content{background-clip:content-box}.bg-clip-padding{background-clip:padding-box}.bg-clip-text{background-clip:text;-webkit-background-clip:text;color:transparent}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-dotted{border-style:dotted}.border-double{border-style:double}.border-none{border-style:none}.border-bs-none{border-block-start:none}.border-be-none{border-block-end:none}.border-is-none{border-inline-start:none}.border-ie-none{border-inline-end:none}.border0{border-width:0}.border-bs0{border-block-start-width:0}.border-be0{border-block-end-width:0}.border-is0{border-inline-start-width:0}.border-ie0{border-inline-end-width:0}.border1{border-width:1px}.border-bs1{border-block-start-width:1px}.border-be1{border-block-end-width:1px}.border-is1{border-inline-start-width:1px}.border-ie1{border-inline-end-width:1px}.border2{border-width:2px}.border-bs2{border-block-start-width:2px}.border-be2{border-block-end-width:2px}.border-is2{border-inline-start-width:2px}.border-ie2{border-inline-end-width:2px}.border3{border-width:4px}.border-bs3{border-block-start-width:4px}.border-be3{border-block-end-width:4px}.border-is3{border-inline-start-width:4px}.border-ie3{border-inline-end-width:4px}.radius-none{border-radius:0}.radius-100{border-radius:100%}.radius-pill{border-radius:9999px}.radius-bs-none,.radius-is-none,.radius-ss-none{border-start-start-radius:0}.radius-bs-none,.radius-ie-none,.radius-se-none{border-start-end-radius:0}.radius-be-none,.radius-es-none,.radius-is-none{border-end-start-radius:0}.radius-be-none,.radius-ee-none,.radius-ie-none{border-end-end-radius:0}.radius0{border-radius:2px}.radius1{border-radius:8px}.radius2{border-radius:16px}.radius3{border-radius:9999px}.text-current{color:currentColor}.text-transparent{color:transparent}.border-current{border-color:currentColor}.border-transparent{border-color:transparent}.background-current{background-color:currentColor}.background-transparent{background-color:transparent}.fill-none{fill:none}.fill-current{fill:currentColor}.stroke-none{stroke:none}.stroke-current{stroke:currentColor}.text-2{font-size:var(--text--2)}.text-1{font-size:var(--text--1)}.text0{font-size:var(--text-0)}.text1{font-size:var(--text-1)}.text2{font-size:var(--text-2)}.text3{font-size:var(--text-3)}.text4{font-size:var(--text-4)}.text5{font-size:var(--text-5)}.italic{font-style:italic}.not-italic{font-style:normal}.leading5{line-height:2}.leading4{line-height:1.625}.leading3{line-height:1.5}.leading2{line-height:1.375}.leading1{line-height:1.25}.leading0,.leading-none{line-height:1}.tracking3{letter-spacing:.1em}.tracking2{letter-spacing:.05em}.tracking1{letter-spacing:.025em}.tracking0{letter-spacing:0}.tracking-1{letter-spacing:-.025em}.tracking-2{letter-spacing:-.05em}.font-hairline{font-weight:100}.font-thin{font-weight:200}.font-light{font-weight:300}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-black{font-weight:900}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.text-inherit{text-align:inherit}.text-center{text-align:center}.text-start{text-align:start}.text-end{text-align:end}.no-underline{text-decoration:none}.underline{text-decoration:underline}.line-through{text-decoration:line-through}.list-none{list-style:none}.list-disc{list-style:disc}.list-decimal{list-style:decimal}.whitespace-normal{white-space:normal}.truncate,.whitespace-no-wrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-normal{word-break:normal}.break-normal,.break-word{overflow-wrap:normal}.break-all{word-break:break-all}.break-keep{word-break:keep-all}.ellipsis,.truncate{text-overflow:ellipsis}.sticky{position:sticky}.static{position:static}.absolute{position:absolute}.relative{position:relative}.fixed{position:fixed}.inset-0{inset:0}.inset-b-0{inset-block:0}.inset-bs-0{inset-block-start:0}.inset-be-0{inset-block-end:0}.inset-i-0{inset-inline:0}.inset-is-0{inset-inline-start:0}.inset-ie-0{inset-inline-end:0}.hidden{display:none}.block{display:block}.inline{display:inline}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.inline-grid{display:inline-grid}.sb-0{block-size:0}.sb-auto{block-size:auto}.sb-100{block-size:100%}.sb-min-0{min-block-size:0}.sb-min-100{min-block-size:100%}.sb-max-0{max-block-size:0}.sb-max-100{max-block-size:100%}.sb-100vw{block-size:100vw}.sb-100vh{block-size:100vh}.si-0{inline-size:0}.si-auto{inline-size:auto}.si-100{inline-size:100%}.si-min-0{min-inline-size:0}.si-min-100{min-inline-size:100%}.si-max0{max-inline-size:0}.si-max-100{max-inline-size:100%}.si-100vw{inline-size:100vw}.si-100vh{inline-size:100vh}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-initial{flex:0 1 auto}.flex-none{flex:none}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.flex-wrap{flex-wrap:wrap}.flex-wrap-reverse{flex-wrap:wrap-reverse}.flex-no-wrap{flex-wrap:nowrap}.flow-row{grid-auto-flow:row}.flow-col{grid-auto-flow:column}.flow-row-dense{grid-auto-flow:row dense}.flow-column-dense{grid-auto-flow:column dense}.row-auto{grid-row:auto}.col-auto{grid-column:auto}.col-end-auto{grid-column-end:auto}.rows-end-auto{grid-row-end:auto}.rows-none{grid-template-rows:none}.col-1{grid-template-columns:repeat(1,minmax(0,1fr))}.col-span-1{grid-column:span 1/span 1}.col-start-1{grid-column-start:1}.row-start-1{grid-row-start:1}.col-end-1{grid-column-end:1}.row-end-1{grid-row-end:1}.row-1{grid-template-rows:repeat(1,minmax(0,1fr))}.col-2{grid-template-columns:repeat(2,minmax(0,1fr))}.col-span-2{grid-column:span 2/span 2}.col-start-2{grid-column-start:2}.row-start-2{grid-row-start:2}.col-end-2{grid-column-end:2}.row-end-2{grid-row-end:2}.row-2{grid-template-rows:repeat(2,minmax(0,1fr))}.col-3{grid-template-columns:repeat(3,minmax(0,1fr))}.col-span-3{grid-column:span 3/span 3}.col-start-3{grid-column-start:3}.row-start-3{grid-row-start:3}.col-end-3{grid-column-end:3}.row-end-3{grid-row-end:3}.row-3{grid-template-rows:repeat(3,minmax(0,1fr))}.col-4{grid-template-columns:repeat(4,minmax(0,1fr))}.col-span-4{grid-column:span 4/span 4}.col-start-4{grid-column-start:4}.row-start-4{grid-row-start:4}.col-end-4{grid-column-end:4}.row-end-4{grid-row-end:4}.row-4{grid-template-rows:repeat(4,minmax(0,1fr))}.col-5{grid-template-columns:repeat(5,minmax(0,1fr))}.col-span-5{grid-column:span 5/span 5}.col-start-5{grid-column-start:5}.row-start-5{grid-row-start:5}.col-end-5{grid-column-end:5}.row-end-5{grid-row-end:5}.row-5{grid-template-rows:repeat(5,minmax(0,1fr))}.col-6{grid-template-columns:repeat(6,minmax(0,1fr))}.col-span-6{grid-column:span 6/span 6}.col-start-6{grid-column-start:6}.row-start-6{grid-row-start:6}.col-end-6{grid-column-end:6}.row-end-6{grid-row-end:6}.row-6{grid-template-rows:repeat(6,minmax(0,1fr))}.align-items-stretch{align-items:stretch}.align-items-center{align-items:center}.align-items-start{align-items:start}.align-items-end{align-items:end}.align-items-self-start{align-items:self-start}.align-items-self-end{align-items:self-end}.align-items-flex-start{align-items:flex-start}.align-items-flex-end{align-items:flex-end}.align-items-baseline{align-items:baseline}.align-content-stretch{align-content:stretch}.align-content-center{align-content:center}.align-content-start{align-content:start}.align-content-end{align-content:end}.align-content-flex-start{align-content:flex-start}.align-content-flex-end{align-content:flex-end}.align-content-baseline{align-content:baseline}.align-content-between{align-content:space-between}.align-content-around{align-content:space-around}.align-content-evenly{align-content:space-evenly}.align-self-stretch{align-self:stretch}.align-self-auto{align-self:auto}.align-self-center{align-self:center}.align-self-start{align-self:start}.align-self-end{align-self:end}.align-self-self-start{align-self:self-start}.align-self-self-end{align-self:self-end}.align-self-flex-start{align-self:flex-start}.align-self-flex-end{align-self:flex-end}.align-self-baseline{align-self:baseline}.justify-content-stretch{justify-content:stretch}.justify-content-center{justify-content:center}.justify-content-start{justify-content:start}.justify-content-end{justify-content:end}.justify-content-flex-start{justify-content:flex-start}.justify-content-flex-end{justify-content:flex-end}.justify-content-between{justify-content:space-between}.justify-content-around{justify-content:space-around}.justify-content-evenly{justify-content:space-evenly}.justify-items-stretch{justify-items:stretch}.justify-items-center{justify-items:center}.justify-items-start{justify-items:start}.justify-items-end{justify-items:end}.justify-items-flex-start{justify-items:flex-start}.justify-items-flex-end{justify-items:flex-end}.justify-items-self-start{justify-items:self-start}.justify-items-self-end{justify-items:self-end}.justify-items-baseline{justify-items:baseline}.justify-self-stretch{justify-self:stretch}.justify-self-center{justify-self:center}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.justify-self-flex-start{justify-self:flex-start}.justify-self-flex-end{justify-self:flex-end}.justify-self-self-start{justify-self:self-start}.justify-self-self-end{justify-self:self-end}.justify-self-baseline{justify-self:baseline}.place-content-stretch{place-content:stretch}.place-content-center{place-content:center}.place-content-start{place-content:start}.place-content-end{place-content:end}.place-content-flex-start{place-content:flex-start}.place-content-flex-end{place-content:flex-end}.place-content-between{place-content:space-between}.place-content-around{place-content:space-around}.place-content-evenly{place-content:space-evenly}.place-items-stretch{place-items:stretch}.place-items-center{place-items:center}.place-items-start{place-items:start}.place-items-end{place-items:end}.place-items-self-start{place-items:self-start}.place-items-self-end{place-items:self-end}.place-items-flex-start{place-items:flex-start}.place-items-flex-end{place-items:flex-end}.place-items-baseline{place-items:baseline}.place-self-stretch{place-self:stretch}.place-self-center{place-self:center}.place-self-start{place-self:start}.place-self-end{place-self:end}.place-self-flex-start{place-self:flex-start}.place-self-flex-end{place-self:flex-end}.place-self-self-start{place-self:self-start}.place-self-self-end{place-self:self-end}.place-self-baseline{place-self:baseline}.gap-5{gap:var(--space--5)}.gap-4{gap:var(--space--4)}.gap-3{gap:var(--space--3)}.gap-2{gap:var(--space--2)}.gap-1{gap:var(--space--1)}.gap0{gap:var(--space-0)}.gap1{gap:var(--space-1)}.gap2{gap:var(--space-2)}.gap3{gap:var(--space-3)}.gap4{gap:var(--space-4)}.gap5{gap:var(--space-5)}.order-first{order:-9999}.order-last{order:9999}.order-none{order:0}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.z-auto{z-index:auto}.z1{z-index:1}.z0{z-index:0}.z-1{z-index:-1}.m-none{margin:0}.mb-none{margin-block:0}.mbs-none{margin-block-start:0}.mbe-none{margin-block-end:0}.mi-none{margin-inline:0}.mis-none{margin-inline-start:0}.mie-none{margin-inline-end:0}.m-auto{margin:auto}.mb-auto{margin-block:auto}.mbs-auto{margin-block-start:auto}.mbe-auto{margin-block-end:auto}.mi-auto{margin-inline:auto}.mis-auto{margin-inline-start:auto}.mie-auto{margin-inline-end:auto}.m-5{margin:var(--space--5)}.mb-5{margin-block:var(--space--5)}.mbs-5{margin-block-start:var(--space--5)}.mbe-5{margin-block-end:var(--space--5)}.mi-5{margin-inline:var(--space--5)}.mis-5{margin-inline-start:var(--space--5)}.mie-5{margin-inline-end:var(--space--5)}.m-4{margin:var(--space--4)}.mb-4{margin-block:var(--space--4)}.mbs-4{margin-block-start:var(--space--4)}.mbe-4{margin-block-end:var(--space--4)}.mi-4{margin-inline:var(--space--4)}.mis-4{margin-inline-start:var(--space--4)}.mie-4{margin-inline-end:var(--space--4)}.m-3{margin:var(--space--3)}.mb-3{margin-block:var(--space--3)}.mbs-3{margin-block-start:var(--space--3)}.mbe-3{margin-block-end:var(--space--3)}.mi-3{margin-inline:var(--space--3)}.mis-3{margin-inline-start:var(--space--3)}.mie-3{margin-inline-end:var(--space--3)}.m-2{margin:var(--space--2)}.mb-2{margin-block:var(--space--2)}.mbs-2{margin-block-start:var(--space--2)}.mbe-2{margin-block-end:var(--space--2)}.mi-2{margin-inline:var(--space--2)}.mis-2{margin-inline-start:var(--space--2)}.mie-2{margin-inline-end:var(--space--2)}.m-1{margin:var(--space--1)}.mb-1{margin-block:var(--space--1)}.mbs-1{margin-block-start:var(--space--1)}.mbe-1{margin-block-end:var(--space--1)}.mi-1{margin-inline:var(--space--1)}.mis-1{margin-inline-start:var(--space--1)}.mie-1{margin-inline-end:var(--space--1)}.m0{margin:var(--space-0)}.mb0{margin-block:var(--space-0)}.mbs0{margin-block-start:var(--space-0)}.mbe0{margin-block-end:var(--space-0)}.mi0{margin-inline:var(--space-0)}.mis0{margin-inline-start:var(--space-0)}.mie0{margin-inline-end:var(--space-0)}.m1{margin:var(--space-1)}.mb1{margin-block:var(--space-1)}.mbs1{margin-block-start:var(--space-1)}.mbe1{margin-block-end:var(--space-1)}.mi1{margin-inline:var(--space-1)}.mis1{margin-inline-start:var(--space-1)}.mie1{margin-inline-end:var(--space-1)}.m2{margin:var(--space-2)}.mb2{margin-block:var(--space-2)}.mbs2{margin-block-start:var(--space-2)}.mbe2{margin-block-end:var(--space-2)}.mi2{margin-inline:var(--space-2)}.mis2{margin-inline-start:var(--space-2)}.mie2{margin-inline-end:var(--space-2)}.m3{margin:var(--space-3)}.mb3{margin-block:var(--space-3)}.mbs3{margin-block-start:var(--space-3)}.mbe3{margin-block-end:var(--space-3)}.mi3{margin-inline:var(--space-3)}.mis3{margin-inline-start:var(--space-3)}.mie3{margin-inline-end:var(--space-3)}.m4{margin:var(--space-4)}.mb4{margin-block:var(--space-4)}.mbs4{margin-block-start:var(--space-4)}.mbe4{margin-block-end:var(--space-4)}.mi4{margin-inline:var(--space-4)}.mis4{margin-inline-start:var(--space-4)}.mie4{margin-inline-end:var(--space-4)}.m5{margin:var(--space-5)}.mb5{margin-block:var(--space-5)}.mbs5{margin-block-start:var(--space-5)}.mbe5{margin-block-end:var(--space-5)}.mi5{margin-inline:var(--space-5)}.mis5{margin-inline-start:var(--space-5)}.mie5{margin-inline-end:var(--space-5)}.p-none{padding:0}.pb-none{padding-block:0}.pbs-none{padding-block-start:0}.pbe-none{padding-block-end:0}.pi-none{padding-inline:0}.pis-none{padding-inline-start:0}.pie-none{padding-inline-end:0}.p-5{padding:var(--space--5)}.pb-5{padding-block:var(--space--5)}.pbs-5{padding-block-start:var(--space--5)}.pbe-5{padding-block-end:var(--space--5)}.pi-5{padding-inline:var(--space--5)}.pis-5{padding-inline-start:var(--space--5)}.pie-5{padding-inline-end:var(--space--5)}.p-4{padding:var(--space--4)}.pb-4{padding-block:var(--space--4)}.pbs-4{padding-block-start:var(--space--4)}.pbe-4{padding-block-end:var(--space--4)}.pi-4{padding-inline:var(--space--4)}.pis-4{padding-inline-start:var(--space--4)}.pie-4{padding-inline-end:var(--space--4)}.p-3{padding:var(--space--3)}.pb-3{padding-block:var(--space--3)}.pbs-3{padding-block-start:var(--space--3)}.pbe-3{padding-block-end:var(--space--3)}.pi-3{padding-inline:var(--space--3)}.pis-3{padding-inline-start:var(--space--3)}.pie-3{padding-inline-end:var(--space--3)}.p-2{padding:var(--space--2)}.pb-2{padding-block:var(--space--2)}.pbs-2{padding-block-start:var(--space--2)}.pbe-2{padding-block-end:var(--space--2)}.pi-2{padding-inline:var(--space--2)}.pis-2{padding-inline-start:var(--space--2)}.pie-2{padding-inline-end:var(--space--2)}.p-1{padding:var(--space--1)}.pb-1{padding-block:var(--space--1)}.pbs-1{padding-block-start:var(--space--1)}.pbe-1{padding-block-end:var(--space--1)}.pi-1{padding-inline:var(--space--1)}.pis-1{padding-inline-start:var(--space--1)}.pie-1{padding-inline-end:var(--space--1)}.p0{padding:var(--space-0)}.pb0{padding-block:var(--space-0)}.pbs0{padding-block-start:var(--space-0)}.pbe0{padding-block-end:var(--space-0)}.pi0{padding-inline:var(--space-0)}.pis0{padding-inline-start:var(--space-0)}.pie0{padding-inline-end:var(--space-0)}.p1{padding:var(--space-1)}.pb1{padding-block:var(--space-1)}.pbs1{padding-block-start:var(--space-1)}.pbe1{padding-block-end:var(--space-1)}.pi1{padding-inline:var(--space-1)}.pis1{padding-inline-start:var(--space-1)}.pie1{padding-inline-end:var(--space-1)}.p2{padding:var(--space-2)}.pb2{padding-block:var(--space-2)}.pbs2{padding-block-start:var(--space-2)}.pbe2{padding-block-end:var(--space-2)}.pi2{padding-inline:var(--space-2)}.pis2{padding-inline-start:var(--space-2)}.pie2{padding-inline-end:var(--space-2)}.p3{padding:var(--space-3)}.pb3{padding-block:var(--space-3)}.pbs3{padding-block-start:var(--space-3)}.pbe3{padding-block-end:var(--space-3)}.pi3{padding-inline:var(--space-3)}.pis3{padding-inline-start:var(--space-3)}.pie3{padding-inline-end:var(--space-3)}.p4{padding:var(--space-4)}.pb4{padding-block:var(--space-4)}.pbs4{padding-block-start:var(--space-4)}.pbe4{padding-block-end:var(--space-4)}.pi4{padding-inline:var(--space-4)}.pis4{padding-inline-start:var(--space-4)}.pie4{padding-inline-end:var(--space-4)}.p5{padding:var(--space-5)}.pb5{padding-block:var(--space-5)}.pbs5{padding-block-start:var(--space-5)}.pbe5{padding-block-end:var(--space-5)}.pi5{padding-inline:var(--space-5)}.pis5{padding-inline-start:var(--space-5)}.pie5{padding-inline-end:var(--space-5)}.overflow-auto{overflow:auto}.overflow-hidden,.truncate{overflow:hidden}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-scroll{overflow-x:scroll}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.overflow-y-hidden{overflow-y:hidden}.scrolling-touch{-webkit-overflow-scrolling:touch}.scrolling-auto{-webkit-overflow-scrolling:auto}.invisible{visibility:hidden}.visible{visibility:visible}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.object-fill{object-fit:fill}.object-none{object-fit:none}.object-scale-down{object-fit:scale-down}.object-b{object-position:bottom}.object-c{object-position:center}.object-t{object-position:top}.object-r{object-position:right}.object-rt{object-position:right top}.object-rb{object-position:right bottom}.object-l{object-position:left}.object-lt{object-position:left top}.object-lb{object-position:left bottom}.outline-none{outline:0}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.opacity-100{opacity:1}.cursor-auto{cursor:auto}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.cursor-text{cursor:text}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.select-none{user-select:none}.select-text{user-select:text}.select-all{user-select:all}.select-auto{user-select:auto}.debug *{outline:2px dotted var(--debug-color,#639)}.debug :hover{border:2px solid var(--debug-color,#639)}@media only screen and (min-width:48em){.text-2-lg{font-size:var(--text--2)}.text-1-lg{font-size:var(--text--1)}.text0-lg{font-size:var(--text-0)}.text1-lg{font-size:var(--text-1)}.text2-lg{font-size:var(--text-2)}.text3-lg{font-size:var(--text-3)}.text4-lg{font-size:var(--text-4)}.text5-lg{font-size:var(--text-5)}.italic-lg{font-style:italic}.not-italic-lg{font-style:normal}.leading5-lg{line-height:2}.leading4-lg{line-height:1.625}.leading3-lg{line-height:1.5}.leading2-lg{line-height:1.375}.leading1-lg{line-height:1.25}.leading0-lg,.leading-none-lg{line-height:1}.tracking3-lg{letter-spacing:.1em}.tracking2-lg{letter-spacing:.05em}.tracking1-lg{letter-spacing:.025em}.tracking0-lg{letter-spacing:0}.tracking-1-lg{letter-spacing:-.025em}.tracking-2-lg{letter-spacing:-.05em}.font-hairline-lg{font-weight:100}.font-thin-lg{font-weight:200}.font-light-lg{font-weight:300}.font-normal-lg{font-weight:400}.font-medium-lg{font-weight:500}.font-semibold-lg{font-weight:600}.font-bold-lg{font-weight:700}.font-extrabold-lg{font-weight:800}.font-black-lg{font-weight:900}.uppercase-lg{text-transform:uppercase}.lowercase-lg{text-transform:lowercase}.capitalize-lg{text-transform:capitalize}.normal-case-lg{text-transform:none}.text-inherit-lg{text-align:inherit}.text-center-lg{text-align:center}.text-start-lg{text-align:start}.text-end-lg{text-align:end}.no-underline-lg{text-decoration:none}.underline-lg{text-decoration:underline}.line-through-lg{text-decoration:line-through}.list-none-lg{list-style:none}.list-disc-lg{list-style:disc}.list-decimal-lg{list-style:decimal}.whitespace-normal-lg{white-space:normal}.truncate-lg,.whitespace-no-wrap-lg{white-space:nowrap}.whitespace-pre-lg{white-space:pre}.whitespace-pre-line-lg{white-space:pre-line}.whitespace-pre-wrap-lg{white-space:pre-wrap}.break-normal-lg{word-break:normal}.break-normal-lg,.break-word-lg{overflow-wrap:normal}.break-all-lg{word-break:break-all}.break-keep-lg{word-break:keep-all}.ellipsis-lg,.truncate-lg{text-overflow:ellipsis}.sticky-lg{position:sticky}.static-lg{position:static}.absolute-lg{position:absolute}.relative-lg{position:relative}.fixed-lg{position:fixed}.inset-0-lg{inset:0}.inset-b-0-lg{inset-block:0}.inset-bs-0-lg{inset-block-start:0}.inset-be-0-lg{inset-block-end:0}.inset-i-0-lg{inset-inline:0}.inset-is-0-lg{inset-inline-start:0}.inset-ie-0-lg{inset-inline-end:0}.hidden-lg{display:none}.block-lg{display:block}.inline-lg{display:inline}.inline-block-lg{display:inline-block}.flex-lg{display:flex}.inline-flex-lg{display:inline-flex}.grid-lg{display:grid}.inline-grid-lg{display:inline-grid}.sb-0-lg{block-size:0}.sb-auto-lg{block-size:auto}.sb-100-lg{block-size:100%}.sb-min-0-lg{min-block-size:0}.sb-min-100-lg{min-block-size:100%}.sb-max-0-lg{max-block-size:0}.sb-max-100-lg{max-block-size:100%}.sb-100vw-lg{block-size:100vw}.sb-100vh-lg{block-size:100vh}.si-0-lg{inline-size:0}.si-auto-lg{inline-size:auto}.si-100-lg{inline-size:100%}.si-min-0-lg{min-inline-size:0}.si-min-100-lg{min-inline-size:100%}.si-max0-lg{max-inline-size:0}.si-max-100-lg{max-inline-size:100%}.si-100vw-lg{inline-size:100vw}.si-100vh-lg{inline-size:100vh}.flex-1-lg{flex:1 1 0%}.flex-auto-lg{flex:1 1 auto}.flex-initial-lg{flex:0 1 auto}.flex-none-lg{flex:none}.flex-row-lg{flex-direction:row}.flex-row-reverse-lg{flex-direction:row-reverse}.flex-col-lg{flex-direction:column}.flex-col-reverse-lg{flex-direction:column-reverse}.flex-grow-lg{flex-grow:1}.flex-grow-0-lg{flex-grow:0}.flex-shrink-lg{flex-shrink:1}.flex-shrink-0-lg{flex-shrink:0}.flex-wrap-lg{flex-wrap:wrap}.flex-wrap-reverse-lg{flex-wrap:wrap-reverse}.flex-no-wrap-lg{flex-wrap:nowrap}.flow-row-lg{grid-auto-flow:row}.flow-col-lg{grid-auto-flow:column}.flow-row-dense-lg{grid-auto-flow:row dense}.flow-column-dense-lg{grid-auto-flow:column dense}.row-auto-lg{grid-row:auto}.col-auto-lg{grid-column:auto}.col-end-auto-lg{grid-column-end:auto}.rows-end-auto-lg{grid-row-end:auto}.rows-none-lg{grid-template-rows:none}.col-1-lg{grid-template-columns:repeat(1,minmax(0,1fr))}.col-span-1-lg{grid-column:span 1/span 1}.col-start-1-lg{grid-column-start:1}.row-start-1-lg{grid-row-start:1}.col-end-1-lg{grid-column-end:1}.row-end-1-lg{grid-row-end:1}.row-1-lg{grid-template-rows:repeat(1,minmax(0,1fr))}.col-2-lg{grid-template-columns:repeat(2,minmax(0,1fr))}.col-span-2-lg{grid-column:span 2/span 2}.col-start-2-lg{grid-column-start:2}.row-start-2-lg{grid-row-start:2}.col-end-2-lg{grid-column-end:2}.row-end-2-lg{grid-row-end:2}.row-2-lg{grid-template-rows:repeat(2,minmax(0,1fr))}.col-3-lg{grid-template-columns:repeat(3,minmax(0,1fr))}.col-span-3-lg{grid-column:span 3/span 3}.col-start-3-lg{grid-column-start:3}.row-start-3-lg{grid-row-start:3}.col-end-3-lg{grid-column-end:3}.row-end-3-lg{grid-row-end:3}.row-3-lg{grid-template-rows:repeat(3,minmax(0,1fr))}.col-4-lg{grid-template-columns:repeat(4,minmax(0,1fr))}.col-span-4-lg{grid-column:span 4/span 4}.col-start-4-lg{grid-column-start:4}.row-start-4-lg{grid-row-start:4}.col-end-4-lg{grid-column-end:4}.row-end-4-lg{grid-row-end:4}.row-4-lg{grid-template-rows:repeat(4,minmax(0,1fr))}.col-5-lg{grid-template-columns:repeat(5,minmax(0,1fr))}.col-span-5-lg{grid-column:span 5/span 5}.col-start-5-lg{grid-column-start:5}.row-start-5-lg{grid-row-start:5}.col-end-5-lg{grid-column-end:5}.row-end-5-lg{grid-row-end:5}.row-5-lg{grid-template-rows:repeat(5,minmax(0,1fr))}.col-6-lg{grid-template-columns:repeat(6,minmax(0,1fr))}.col-span-6-lg{grid-column:span 6/span 6}.col-start-6-lg{grid-column-start:6}.row-start-6-lg{grid-row-start:6}.col-end-6-lg{grid-column-end:6}.row-end-6-lg{grid-row-end:6}.row-6-lg{grid-template-rows:repeat(6,minmax(0,1fr))}.align-items-stretch-lg{align-items:stretch}.align-items-center-lg{align-items:center}.align-items-start-lg{align-items:start}.align-items-end-lg{align-items:end}.align-items-self-start-lg{align-items:self-start}.align-items-self-end-lg{align-items:self-end}.align-items-flex-start-lg{align-items:flex-start}.align-items-flex-end-lg{align-items:flex-end}.align-items-baseline-lg{align-items:baseline}.align-content-stretch-lg{align-content:stretch}.align-content-center-lg{align-content:center}.align-content-start-lg{align-content:start}.align-content-end-lg{align-content:end}.align-content-flex-start-lg{align-content:flex-start}.align-content-flex-end-lg{align-content:flex-end}.align-content-baseline-lg{align-content:baseline}.align-content-between-lg{align-content:space-between}.align-content-around-lg{align-content:space-around}.align-content-evenly-lg{align-content:space-evenly}.align-self-stretch-lg{align-self:stretch}.align-self-auto-lg{align-self:auto}.align-self-center-lg{align-self:center}.align-self-start-lg{align-self:start}.align-self-end-lg{align-self:end}.align-self-self-start-lg{align-self:self-start}.align-self-self-end-lg{align-self:self-end}.align-self-flex-start-lg{align-self:flex-start}.align-self-flex-end-lg{align-self:flex-end}.align-self-baseline-lg{align-self:baseline}.justify-content-stretch-lg{justify-content:stretch}.justify-content-center-lg{justify-content:center}.justify-content-start-lg{justify-content:start}.justify-content-end-lg{justify-content:end}.justify-content-flex-start-lg{justify-content:flex-start}.justify-content-flex-end-lg{justify-content:flex-end}.justify-content-between-lg{justify-content:space-between}.justify-content-around-lg{justify-content:space-around}.justify-content-evenly-lg{justify-content:space-evenly}.justify-items-stretch-lg{justify-items:stretch}.justify-items-center-lg{justify-items:center}.justify-items-start-lg{justify-items:start}.justify-items-end-lg{justify-items:end}.justify-items-flex-start-lg{justify-items:flex-start}.justify-items-flex-end-lg{justify-items:flex-end}.justify-items-self-start-lg{justify-items:self-start}.justify-items-self-end-lg{justify-items:self-end}.justify-items-baseline-lg{justify-items:baseline}.justify-self-stretch-lg{justify-self:stretch}.justify-self-center-lg{justify-self:center}.justify-self-start-lg{justify-self:start}.justify-self-end-lg{justify-self:end}.justify-self-flex-start-lg{justify-self:flex-start}.justify-self-flex-end-lg{justify-self:flex-end}.justify-self-self-start-lg{justify-self:self-start}.justify-self-self-end-lg{justify-self:self-end}.justify-self-baseline-lg{justify-self:baseline}.place-content-stretch-lg{place-content:stretch}.place-content-center-lg{place-content:center}.place-content-start-lg{place-content:start}.place-content-end-lg{place-content:end}.place-content-flex-start-lg{place-content:flex-start}.place-content-flex-end-lg{place-content:flex-end}.place-content-between-lg{place-content:space-between}.place-content-around-lg{place-content:space-around}.place-content-evenly-lg{place-content:space-evenly}.place-items-stretch-lg{place-items:stretch}.place-items-center-lg{place-items:center}.place-items-start-lg{place-items:start}.place-items-end-lg{place-items:end}.place-items-self-start-lg{place-items:self-start}.place-items-self-end-lg{place-items:self-end}.place-items-flex-start-lg{place-items:flex-start}.place-items-flex-end-lg{place-items:flex-end}.place-items-baseline-lg{place-items:baseline}.place-self-stretch-lg{place-self:stretch}.place-self-center-lg{place-self:center}.place-self-start-lg{place-self:start}.place-self-end-lg{place-self:end}.place-self-flex-start-lg{place-self:flex-start}.place-self-flex-end-lg{place-self:flex-end}.place-self-self-start-lg{place-self:self-start}.place-self-self-end-lg{place-self:self-end}.place-self-baseline-lg{place-self:baseline}.gap-5-lg{gap:var(--space--5)}.gap-4-lg{gap:var(--space--4)}.gap-3-lg{gap:var(--space--3)}.gap-2-lg{gap:var(--space--2)}.gap-1-lg{gap:var(--space--1)}.gap0-lg{gap:var(--space-0)}.gap1-lg{gap:var(--space-1)}.gap2-lg{gap:var(--space-2)}.gap3-lg{gap:var(--space-3)}.gap4-lg{gap:var(--space-4)}.gap5-lg{gap:var(--space-5)}.order-first-lg{order:-9999}.order-last-lg{order:9999}.order-none-lg{order:0}.order-1-lg{order:1}.order-2-lg{order:2}.order-3-lg{order:3}.order-4-lg{order:4}.order-5-lg{order:5}.order-6-lg{order:6}.z-auto-lg{z-index:auto}.z1-lg{z-index:1}.z0-lg{z-index:0}.z-1-lg{z-index:-1}.m-none-lg{margin:0}.mb-none-lg{margin-block:0}.mbs-none-lg{margin-block-start:0}.mbe-none-lg{margin-block-end:0}.mi-none-lg{margin-inline:0}.mis-none-lg{margin-inline-start:0}.mie-none-lg{margin-inline-end:0}.m-auto-lg{margin:auto}.mb-auto-lg{margin-block:auto}.mbs-auto-lg{margin-block-start:auto}.mbe-auto-lg{margin-block-end:auto}.mi-auto-lg{margin-inline:auto}.mis-auto-lg{margin-inline-start:auto}.mie-auto-lg{margin-inline-end:auto}.m-5-lg{margin:var(--space--5)}.mb-5-lg{margin-block:var(--space--5)}.mbs-5-lg{margin-block-start:var(--space--5)}.mbe-5-lg{margin-block-end:var(--space--5)}.mi-5-lg{margin-inline:var(--space--5)}.mis-5-lg{margin-inline-start:var(--space--5)}.mie-5-lg{margin-inline-end:var(--space--5)}.m-4-lg{margin:var(--space--4)}.mb-4-lg{margin-block:var(--space--4)}.mbs-4-lg{margin-block-start:var(--space--4)}.mbe-4-lg{margin-block-end:var(--space--4)}.mi-4-lg{margin-inline:var(--space--4)}.mis-4-lg{margin-inline-start:var(--space--4)}.mie-4-lg{margin-inline-end:var(--space--4)}.m-3-lg{margin:var(--space--3)}.mb-3-lg{margin-block:var(--space--3)}.mbs-3-lg{margin-block-start:var(--space--3)}.mbe-3-lg{margin-block-end:var(--space--3)}.mi-3-lg{margin-inline:var(--space--3)}.mis-3-lg{margin-inline-start:var(--space--3)}.mie-3-lg{margin-inline-end:var(--space--3)}.m-2-lg{margin:var(--space--2)}.mb-2-lg{margin-block:var(--space--2)}.mbs-2-lg{margin-block-start:var(--space--2)}.mbe-2-lg{margin-block-end:var(--space--2)}.mi-2-lg{margin-inline:var(--space--2)}.mis-2-lg{margin-inline-start:var(--space--2)}.mie-2-lg{margin-inline-end:var(--space--2)}.m-1-lg{margin:var(--space--1)}.mb-1-lg{margin-block:var(--space--1)}.mbs-1-lg{margin-block-start:var(--space--1)}.mbe-1-lg{margin-block-end:var(--space--1)}.mi-1-lg{margin-inline:var(--space--1)}.mis-1-lg{margin-inline-start:var(--space--1)}.mie-1-lg{margin-inline-end:var(--space--1)}.m0-lg{margin:var(--space-0)}.mb0-lg{margin-block:var(--space-0)}.mbs0-lg{margin-block-start:var(--space-0)}.mbe0-lg{margin-block-end:var(--space-0)}.mi0-lg{margin-inline:var(--space-0)}.mis0-lg{margin-inline-start:var(--space-0)}.mie0-lg{margin-inline-end:var(--space-0)}.m1-lg{margin:var(--space-1)}.mb1-lg{margin-block:var(--space-1)}.mbs1-lg{margin-block-start:var(--space-1)}.mbe1-lg{margin-block-end:var(--space-1)}.mi1-lg{margin-inline:var(--space-1)}.mis1-lg{margin-inline-start:var(--space-1)}.mie1-lg{margin-inline-end:var(--space-1)}.m2-lg{margin:var(--space-2)}.mb2-lg{margin-block:var(--space-2)}.mbs2-lg{margin-block-start:var(--space-2)}.mbe2-lg{margin-block-end:var(--space-2)}.mi2-lg{margin-inline:var(--space-2)}.mis2-lg{margin-inline-start:var(--space-2)}.mie2-lg{margin-inline-end:var(--space-2)}.m3-lg{margin:var(--space-3)}.mb3-lg{margin-block:var(--space-3)}.mbs3-lg{margin-block-start:var(--space-3)}.mbe3-lg{margin-block-end:var(--space-3)}.mi3-lg{margin-inline:var(--space-3)}.mis3-lg{margin-inline-start:var(--space-3)}.mie3-lg{margin-inline-end:var(--space-3)}.m4-lg{margin:var(--space-4)}.mb4-lg{margin-block:var(--space-4)}.mbs4-lg{margin-block-start:var(--space-4)}.mbe4-lg{margin-block-end:var(--space-4)}.mi4-lg{margin-inline:var(--space-4)}.mis4-lg{margin-inline-start:var(--space-4)}.mie4-lg{margin-inline-end:var(--space-4)}.m5-lg{margin:var(--space-5)}.mb5-lg{margin-block:var(--space-5)}.mbs5-lg{margin-block-start:var(--space-5)}.mbe5-lg{margin-block-end:var(--space-5)}.mi5-lg{margin-inline:var(--space-5)}.mis5-lg{margin-inline-start:var(--space-5)}.mie5-lg{margin-inline-end:var(--space-5)}.p-none-lg{padding:0}.pb-none-lg{padding-block:0}.pbs-none-lg{padding-block-start:0}.pbe-none-lg{padding-block-end:0}.pi-none-lg{padding-inline:0}.pis-none-lg{padding-inline-start:0}.pie-none-lg{padding-inline-end:0}.p-5-lg{padding:var(--space--5)}.pb-5-lg{padding-block:var(--space--5)}.pbs-5-lg{padding-block-start:var(--space--5)}.pbe-5-lg{padding-block-end:var(--space--5)}.pi-5-lg{padding-inline:var(--space--5)}.pis-5-lg{padding-inline-start:var(--space--5)}.pie-5-lg{padding-inline-end:var(--space--5)}.p-4-lg{padding:var(--space--4)}.pb-4-lg{padding-block:var(--space--4)}.pbs-4-lg{padding-block-start:var(--space--4)}.pbe-4-lg{padding-block-end:var(--space--4)}.pi-4-lg{padding-inline:var(--space--4)}.pis-4-lg{padding-inline-start:var(--space--4)}.pie-4-lg{padding-inline-end:var(--space--4)}.p-3-lg{padding:var(--space--3)}.pb-3-lg{padding-block:var(--space--3)}.pbs-3-lg{padding-block-start:var(--space--3)}.pbe-3-lg{padding-block-end:var(--space--3)}.pi-3-lg{padding-inline:var(--space--3)}.pis-3-lg{padding-inline-start:var(--space--3)}.pie-3-lg{padding-inline-end:var(--space--3)}.p-2-lg{padding:var(--space--2)}.pb-2-lg{padding-block:var(--space--2)}.pbs-2-lg{padding-block-start:var(--space--2)}.pbe-2-lg{padding-block-end:var(--space--2)}.pi-2-lg{padding-inline:var(--space--2)}.pis-2-lg{padding-inline-start:var(--space--2)}.pie-2-lg{padding-inline-end:var(--space--2)}.p-1-lg{padding:var(--space--1)}.pb-1-lg{padding-block:var(--space--1)}.pbs-1-lg{padding-block-start:var(--space--1)}.pbe-1-lg{padding-block-end:var(--space--1)}.pi-1-lg{padding-inline:var(--space--1)}.pis-1-lg{padding-inline-start:var(--space--1)}.pie-1-lg{padding-inline-end:var(--space--1)}.p0-lg{padding:var(--space-0)}.pb0-lg{padding-block:var(--space-0)}.pbs0-lg{padding-block-start:var(--space-0)}.pbe0-lg{padding-block-end:var(--space-0)}.pi0-lg{padding-inline:var(--space-0)}.pis0-lg{padding-inline-start:var(--space-0)}.pie0-lg{padding-inline-end:var(--space-0)}.p1-lg{padding:var(--space-1)}.pb1-lg{padding-block:var(--space-1)}.pbs1-lg{padding-block-start:var(--space-1)}.pbe1-lg{padding-block-end:var(--space-1)}.pi1-lg{padding-inline:var(--space-1)}.pis1-lg{padding-inline-start:var(--space-1)}.pie1-lg{padding-inline-end:var(--space-1)}.p2-lg{padding:var(--space-2)}.pb2-lg{padding-block:var(--space-2)}.pbs2-lg{padding-block-start:var(--space-2)}.pbe2-lg{padding-block-end:var(--space-2)}.pi2-lg{padding-inline:var(--space-2)}.pis2-lg{padding-inline-start:var(--space-2)}.pie2-lg{padding-inline-end:var(--space-2)}.p3-lg{padding:var(--space-3)}.pb3-lg{padding-block:var(--space-3)}.pbs3-lg{padding-block-start:var(--space-3)}.pbe3-lg{padding-block-end:var(--space-3)}.pi3-lg{padding-inline:var(--space-3)}.pis3-lg{padding-inline-start:var(--space-3)}.pie3-lg{padding-inline-end:var(--space-3)}.p4-lg{padding:var(--space-4)}.pb4-lg{padding-block:var(--space-4)}.pbs4-lg{padding-block-start:var(--space-4)}.pbe4-lg{padding-block-end:var(--space-4)}.pi4-lg{padding-inline:var(--space-4)}.pis4-lg{padding-inline-start:var(--space-4)}.pie4-lg{padding-inline-end:var(--space-4)}.p5-lg{padding:var(--space-5)}.pb5-lg{padding-block:var(--space-5)}.pbs5-lg{padding-block-start:var(--space-5)}.pbe5-lg{padding-block-end:var(--space-5)}.pi5-lg{padding-inline:var(--space-5)}.pis5-lg{padding-inline-start:var(--space-5)}.pie5-lg{padding-inline-end:var(--space-5)}.overflow-auto-lg{overflow:auto}.overflow-hidden-lg,.truncate-lg{overflow:hidden}.overflow-visible-lg{overflow:visible}.overflow-scroll-lg{overflow:scroll}.overflow-x-auto-lg{overflow-x:auto}.overflow-y-auto-lg{overflow-y:auto}.overflow-x-scroll-lg{overflow-x:scroll}.overflow-x-hidden-lg{overflow-x:hidden}.overflow-y-scroll-lg{overflow-y:scroll}.overflow-y-hidden-lg{overflow-y:hidden}.scrolling-touch-lg{-webkit-overflow-scrolling:touch}.scrolling-auto-lg{-webkit-overflow-scrolling:auto}.invisible-lg{visibility:hidden}.visible-lg{visibility:visible}.object-contain-lg{object-fit:contain}.object-cover-lg{object-fit:cover}.object-fill-lg{object-fit:fill}.object-none-lg{object-fit:none}.object-scale-down-lg{object-fit:scale-down}.object-b-lg{object-position:bottom}.object-c-lg{object-position:center}.object-t-lg{object-position:top}.object-r-lg{object-position:right}.object-rt-lg{object-position:right top}.object-rb-lg{object-position:right bottom}.object-l-lg{object-position:left}.object-lt-lg{object-position:left top}.object-lb-lg{object-position:left bottom}.outline-none-lg{outline:0}.opacity-0-lg{opacity:0}.opacity-25-lg{opacity:.25}.opacity-50-lg{opacity:.5}.opacity-75-lg{opacity:.75}.opacity-100-lg{opacity:1}.cursor-auto-lg{cursor:auto}.cursor-default-lg{cursor:default}.cursor-pointer-lg{cursor:pointer}.cursor-wait-lg{cursor:wait}.cursor-text-lg{cursor:text}.cursor-move-lg{cursor:move}.cursor-not-allowed-lg{cursor:not-allowed}.cursor-grab-lg{cursor:grab}.cursor-grabbing-lg{cursor:grabbing}.select-none-lg{user-select:none}.select-text-lg{user-select:text}.select-all-lg{user-select:all}.select-auto-lg{user-select:auto}.debug *{outline:2px dotted var(--debug-color,#639)}.debug :hover{border:2px solid var(--debug-color,#639)}} -------------------------------------------------------------------------------- /dist/enhance.css: -------------------------------------------------------------------------------- 1 | /** 2 | * ENHANCE STYLES 3 | * For more information, please see the documentation at : https://github.com/enhance-dev/enhance-styles#readme 4 | */ 5 | 6 | /*** Theme Colors ***/ 7 | :root { 8 | --accent-h: 208; 9 | --accent-s: 100%; 10 | --accent-l: 42.9%; 11 | --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l)); 12 | --light: #fefefe; 13 | --dark: #222222; 14 | --fore: var(--dark, currentColor); 15 | --back: var(--light); 16 | --error-h: 0; 17 | --error-s: 94.5%; 18 | --error-l: 43.1%; 19 | --error: hsl(var(--error-h), var(--error-s), var(--error-l)); 20 | --gray-100: hsl(0, 0%, 90%); 21 | --gray-200: hsl(0, 0%, 80%); 22 | --gray-300: hsl(0, 0%, 70%); 23 | --gray-400: hsl(0, 0%, 60%); 24 | --gray-500: hsl(0, 0%, 50%); 25 | --gray-600: hsl(0, 0%, 40%); 26 | --gray-700: hsl(0, 0%, 30%); 27 | --gray-800: hsl(0, 0%, 20%); 28 | --gray-900: hsl(0, 0%, 10%); 29 | --focus-l: 30%; 30 | accent-color: var(--accent, royalblue); 31 | color-scheme: light dark; 32 | } 33 | :is(a, button, input, textarea, summary):focus:not(:focus-visible) { 34 | outline: none; 35 | } 36 | :is(a, button, input, textarea, summary):focus-visible { 37 | outline: max(var(--focus-size, 1px), 1px) solid var(--accent, royalblue); 38 | outline-offset: var(--focus-offset, 0); 39 | box-shadow: 0 0 0 max(var(--focus-size, 3px), 3px) hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) + var(--focus-l))) 40 | ; 41 | } 42 | :is(a, button, input, textarea, summary):not(:focus):not(:placeholder-shown):invalid { 43 | outline: max(var(--focus-size, 1px), 1px) solid var(--error, crimson); 44 | outline-offset: var(--focus-offset, 0); 45 | box-shadow: 0 0 0 3px hsl(var(--error-h), var(--error-s), calc(var(--error-l) + var(--focus-l))); 46 | } 47 | @media (prefers-color-scheme: dark) { 48 | :root { 49 | --accent-h: 208; 50 | --accent-s: 100%; 51 | --accent-l: 62%; 52 | --error-h: 0; 53 | --error-s: 94.5%; 54 | --error-l: 62%; 55 | --focus-l: -30%; 56 | --fore: var(--light); 57 | --back: var(--dark); 58 | } 59 | } 60 | 61 | 62 | 63 | /*** Type Scale ***/ 64 | :root { 65 | --text--2: clamp(0.69rem, 0.71rem + -0.08vw, 0.63rem); 66 | --text--1: clamp(0.83rem, 0.83rem + 0.01vw, 0.84rem); 67 | --text-0: clamp(1rem, 0.97rem + 0.17vw, 1.13rem); 68 | --text-1: clamp(1.2rem, 1.12rem + 0.41vw, 1.5rem); 69 | --text-2: clamp(1.44rem, 1.29rem + 0.76vw, 2rem); 70 | --text-3: clamp(1.73rem, 1.47rem + 1.27vw, 2.66rem); 71 | --text-4: clamp(2.07rem, 1.67rem + 2vw, 3.55rem); 72 | --text-5: clamp(2.49rem, 1.88rem + 3.05vw, 4.74rem); 73 | 74 | } 75 | 76 | 77 | /*** Space Scale ***/ 78 | :root { 79 | --space--5: clamp(0.4rem, 0.44rem + -0.18vw, 0.27rem); 80 | --space--4: clamp(0.48rem, 0.52rem + -0.17vw, 0.36rem); 81 | --space--3: clamp(0.58rem, 0.61rem + -0.14vw, 0.48rem); 82 | --space--2: clamp(0.69rem, 0.71rem + -0.08vw, 0.63rem); 83 | --space--1: clamp(0.83rem, 0.83rem + 0.01vw, 0.84rem); 84 | --space-0: clamp(1rem, 0.97rem + 0.17vw, 1.13rem); 85 | --space-1: clamp(1.2rem, 1.12rem + 0.41vw, 1.5rem); 86 | --space-2: clamp(1.44rem, 1.29rem + 0.76vw, 2rem); 87 | --space-3: clamp(1.73rem, 1.47rem + 1.27vw, 2.66rem); 88 | --space-4: clamp(2.07rem, 1.67rem + 2vw, 3.55rem); 89 | --space-5: clamp(2.49rem, 1.88rem + 3.05vw, 4.74rem); 90 | 91 | } 92 | 93 | 94 | /*** Reset ***/ 95 | *, 96 | *::before, 97 | *::after { 98 | box-sizing: border-box; 99 | } 100 | * { 101 | margin: 0; 102 | padding: 0; 103 | border: 0 solid transparent; 104 | } 105 | html:focus-within { 106 | scroll-behavior: smooth; 107 | } 108 | audio, 109 | canvas, 110 | embed, 111 | iframe, 112 | img, 113 | object, 114 | picture, 115 | svg, 116 | video { 117 | display: block; 118 | max-width: 100%; 119 | } 120 | img, 121 | picture, 122 | svg, 123 | video { 124 | block-size: auto; 125 | } 126 | button, 127 | input, 128 | select, 129 | textarea { 130 | font: inherit; 131 | line-height: inherit; 132 | color: inherit; 133 | } 134 | a { 135 | cursor: pointer; 136 | color: inherit; 137 | text-decoration: inherit; 138 | } 139 | a:not([class]) { 140 | text-decoration-skip-ink: auto; 141 | } 142 | button, 143 | [role="button"] { 144 | cursor: pointer; 145 | background-color: transparent; 146 | } 147 | code { 148 | font: inherit; 149 | font-size: inherit; 150 | } 151 | h1, 152 | h2, 153 | h3, 154 | h4, 155 | h5, 156 | h6 { 157 | font-size: inherit; 158 | font-weight: inherit; 159 | } 160 | ul[role='list'], 161 | ol[role='list'] { 162 | list-style: none; 163 | } 164 | table { 165 | border-collapse: collapse; 166 | border-spacing: 0; 167 | } 168 | textarea { 169 | vertical-align: top; 170 | overflow: auto; 171 | } 172 | dialog { 173 | margin: auto; 174 | } 175 | @media (prefers-reduced-motion: reduce) { 176 | html:focus-within { 177 | scroll-behavior: auto; 178 | } 179 | *, 180 | *::before, 181 | *::after { 182 | animation-duration: 0.01ms !important; 183 | animation-iteration-count: 1 !important; 184 | transition-duration: 0.01ms !important; 185 | scroll-behavior: auto !important; 186 | } 187 | } 188 | 189 | 190 | /*** Typeface ***/ 191 | html {font-size: 100%;} 192 | 193 | /*** Family ***/ 194 | .font-sans{font-family: system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif;} 195 | .font-serif{font-family: Georgia,Cambria,Times New Roman,Times,serif;} 196 | .font-mono{font-family: Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;} 197 | 198 | body { 199 | font-size: var(--text-0); 200 | font-weight: normal; 201 | line-height: 1; 202 | text-rendering: optimizeSpeed; 203 | } 204 | 205 | 206 | /*** Smoothing ***/ 207 | .font-smoothing { 208 | -webkit-font-smoothing: antialiased; 209 | -moz-osx-font-smoothing: grayscale; 210 | } 211 | 212 | 213 | /*** Background ***/ 214 | .bg-fixed{background-attachment:fixed;} 215 | .bg-local{background-attachment:local;} 216 | .bg-scroll{background-attachment:scroll;} 217 | .bg-bottom{background-position:bottom;} 218 | .bg-center{background-position:center;} 219 | .bg-left{background-position:left;} 220 | .bg-left-bottom{background-position:left bottom;} 221 | .bg-left-top{background-position:left top;} 222 | .bg-right{background-position:right;} 223 | .bg-right-bottom{background-position:right bottom;} 224 | .bg-right-top{background-position:right top;} 225 | .bg-top{background-position:top;} 226 | .bg-repeat{background-repeat:repeat;} 227 | .bg-no-repeat{background-repeat:no-repeat;} 228 | .bg-repeat-x{background-repeat:repeat-x;} 229 | .bg-repeat-y{background-repeat:repeat-y;} 230 | .bg-repeat-round{background-repeat:round;} 231 | .bg-repeat-space{background-repeat:space;} 232 | .bg-auto{background-size:auto;} 233 | .bg-cover{background-size:cover;} 234 | .bg-contain{background-size:contain;} 235 | .bg-unset{background-color:unset;} 236 | .bg-clip-border{background-clip:border-box;} 237 | .bg-clip-content{background-clip:content-box;} 238 | .bg-clip-padding{background-clip:padding-box;} 239 | .bg-clip-text{ 240 | background-clip:text; 241 | -webkit-background-clip:text; 242 | color:transparent; 243 | } 244 | 245 | 246 | /*** Border ***/ 247 | .border-solid{border-style:solid;} 248 | .border-dashed{border-style:dashed;} 249 | .border-dotted{border-style:dotted;} 250 | .border-double{border-style:double;} 251 | .border-none{border-style:none;} 252 | .border-bs-none{border-block-start:none;} 253 | .border-be-none{border-block-end:none;} 254 | .border-is-none{border-inline-start:none;} 255 | .border-ie-none{border-inline-end:none;} 256 | 257 | .border0{border-width:0px;} 258 | .border-bs0{border-block-start-width:0px;} 259 | .border-be0{border-block-end-width:0px;} 260 | .border-is0{border-inline-start-width:0px;} 261 | .border-ie0{border-inline-end-width:0px;} 262 | 263 | .border1{border-width:1px;} 264 | .border-bs1{border-block-start-width:1px;} 265 | .border-be1{border-block-end-width:1px;} 266 | .border-is1{border-inline-start-width:1px;} 267 | .border-ie1{border-inline-end-width:1px;} 268 | 269 | .border2{border-width:2px;} 270 | .border-bs2{border-block-start-width:2px;} 271 | .border-be2{border-block-end-width:2px;} 272 | .border-is2{border-inline-start-width:2px;} 273 | .border-ie2{border-inline-end-width:2px;} 274 | 275 | .border3{border-width:4px;} 276 | .border-bs3{border-block-start-width:4px;} 277 | .border-be3{border-block-end-width:4px;} 278 | .border-is3{border-inline-start-width:4px;} 279 | .border-ie3{border-inline-end-width:4px;} 280 | 281 | 282 | /*** Radius ***/ 283 | .radius-none{border-radius:0;} 284 | .radius-100{border-radius:100%;} 285 | .radius-pill{border-radius:9999px;} 286 | .radius-bs-none, 287 | .radius-is-none, 288 | .radius-ss-none{border-start-start-radius:0;} 289 | .radius-bs-none, 290 | .radius-ie-none, 291 | .radius-se-none{border-start-end-radius:0;} 292 | .radius-be-none, 293 | .radius-is-none, 294 | .radius-es-none{border-end-start-radius:0;} 295 | .radius-be-none, 296 | .radius-ie-none, 297 | .radius-ee-none{border-end-end-radius:0;} 298 | .radius0{border-radius:2px;} 299 | .radius1{border-radius:8px;} 300 | .radius2{border-radius:16px;} 301 | .radius3{border-radius:9999px;} 302 | 303 | 304 | /*** Color ***/ 305 | .text-current{color:currentColor}/* current color */ 306 | .text-transparent{color:transparent}/* transparent */ 307 | 308 | .border-current{border-color:currentColor}/* current color */ 309 | .border-transparent{border-color:transparent}/* transparent */ 310 | 311 | .background-current{background-color:currentColor}/* current color */ 312 | .background-transparent{background-color:transparent}/* transparent */ 313 | 314 | 315 | /*** Fill ***/ 316 | .fill-none{fill:none} 317 | .fill-current{fill:currentColor} 318 | 319 | 320 | /*** Stroke ***/ 321 | .stroke-none{stroke:none;} 322 | .stroke-current{stroke:currentColor;} 323 | 324 | 325 | 326 | 327 | /*** Font Sizes ***/ 328 | .text-2{font-size:var(--text--2);} 329 | .text-1{font-size:var(--text--1);} 330 | .text0{font-size:var(--text-0);} 331 | .text1{font-size:var(--text-1);} 332 | .text2{font-size:var(--text-2);} 333 | .text3{font-size:var(--text-3);} 334 | .text4{font-size:var(--text-4);} 335 | .text5{font-size:var(--text-5);} 336 | 337 | 338 | /*** Style ***/ 339 | .italic{font-style:italic;} 340 | .not-italic{font-style:normal;} 341 | 342 | 343 | /*** Line Height ***/ 344 | .leading5{line-height: 2;} 345 | .leading4{line-height: 1.625;} 346 | .leading3{line-height: 1.5;} 347 | .leading2{line-height: 1.375;} 348 | .leading1{line-height: 1.25;} 349 | .leading0, 350 | .leading-none{line-height:1;} 351 | 352 | 353 | /*** Tracking ***/ 354 | .tracking3{letter-spacing: 0.1em;} 355 | .tracking2{letter-spacing: 0.05em;} 356 | .tracking1{letter-spacing: 0.025em;} 357 | .tracking0{letter-spacing: 0;} 358 | .tracking-1{letter-spacing: -0.025em;} 359 | .tracking-2{letter-spacing: -0.05em;} 360 | 361 | 362 | /*** Font Weight ***/ 363 | .font-hairline{font-weight:100;} 364 | .font-thin{font-weight:200;} 365 | .font-light{font-weight:300;} 366 | .font-normal{font-weight:400;} 367 | .font-medium{font-weight:500;} 368 | .font-semibold{font-weight:600;} 369 | .font-bold{font-weight:700;} 370 | .font-extrabold{font-weight:800;} 371 | .font-black{font-weight:900;} 372 | 373 | 374 | /*** Text Transform ***/ 375 | .uppercase{text-transform:uppercase;} 376 | .lowercase{text-transform:lowercase;} 377 | .capitalize{text-transform:capitalize;} 378 | .normal-case{text-transform:none;} 379 | 380 | 381 | /*** Text alignment ***/ 382 | .text-inherit{text-align:inherit;} 383 | .text-center{text-align:center;} 384 | .text-start{text-align:start;} 385 | .text-end{text-align:end;} 386 | 387 | 388 | /*** Decoration ***/ 389 | .no-underline{text-decoration:none;} 390 | .underline{text-decoration:underline;} 391 | .line-through{text-decoration:line-through;} 392 | 393 | 394 | /*** List ***/ 395 | .list-none{list-style:none;} 396 | .list-disc{list-style:disc;} 397 | .list-decimal{list-style:decimal;} 398 | 399 | 400 | /*** Whitespace ***/ 401 | .whitespace-normal{white-space:normal;} 402 | .truncate, 403 | .whitespace-no-wrap{white-space:nowrap;} 404 | .whitespace-pre{white-space:pre;} 405 | .whitespace-pre-line{white-space:pre-line;} 406 | .whitespace-pre-wrap{white-space:pre-wrap;} 407 | 408 | 409 | /*** Wordbreak ***/ 410 | .break-normal{word-break:normal} 411 | .break-normal, 412 | .break-word{overflow-wrap:normal} 413 | .break-all{word-break:break-all} 414 | .break-keep{word-break:keep-all} 415 | .truncate, 416 | .ellipsis{text-overflow:ellipsis} 417 | 418 | 419 | 420 | /*** Layout ***/ 421 | 422 | 423 | /*** Position ***/ 424 | .sticky{position:sticky;} 425 | .static{position:static;} 426 | .absolute{position:absolute;} 427 | .relative{position:relative;} 428 | .fixed{position:fixed;} 429 | 430 | 431 | /*** Inset ***/ 432 | .inset-0{inset:0} 433 | .inset-b-0{inset-block:0;} 434 | .inset-bs-0{inset-block-start:0;} 435 | .inset-be-0{inset-block-end:0;} 436 | .inset-i-0{inset-inline:0;} 437 | .inset-is-0{inset-inline-start:0;} 438 | .inset-ie-0{inset-inline-end:0;} 439 | 440 | 441 | /*** Display ***/ 442 | .hidden{display:none;} 443 | .block{display:block;} 444 | .inline{display:inline;} 445 | .inline-block{display:inline-block;} 446 | .flex{display:flex;} 447 | .inline-flex{display:inline-flex;} 448 | .grid{display:grid;} 449 | .inline-grid{display:inline-grid;} 450 | 451 | 452 | /*** Size ***/ 453 | .sb-0{block-size:0} 454 | .sb-auto{block-size:auto} 455 | .sb-100{block-size:100%} 456 | .sb-min-0{min-block-size:0} 457 | .sb-min-100{min-block-size:100%} 458 | .sb-max-0{max-block-size:0} 459 | .sb-max-100{max-block-size:100%} 460 | .sb-100vw{block-size:100vw} 461 | .sb-100vh{block-size:100vh} 462 | .si-0{inline-size:0} 463 | .si-auto{inline-size:auto} 464 | .si-100{inline-size:100%} 465 | .si-min-0{min-inline-size:0} 466 | .si-min-100{min-inline-size:100%} 467 | .si-max0{max-inline-size:0} 468 | .si-max-100{max-inline-size:100%} 469 | .si-100vw{inline-size:100vw} 470 | .si-100vh{inline-size:100vh} 471 | 472 | 473 | /*** Flex ***/ 474 | .flex-1{flex: 1 1 0%;} 475 | .flex-auto{flex: 1 1 auto;} 476 | .flex-initial{flex: 0 1 auto;} 477 | .flex-none{flex:none;} 478 | .flex-row{flex-direction:row;} 479 | .flex-row-reverse{flex-direction:row-reverse;} 480 | .flex-col{flex-direction:column;} 481 | .flex-col-reverse{flex-direction:column-reverse;} 482 | .flex-grow{flex-grow:1;} 483 | .flex-grow-0{flex-grow:0;} 484 | .flex-shrink{flex-shrink:1;} 485 | .flex-shrink-0{flex-shrink:0;} 486 | .flex-wrap{flex-wrap:wrap;} 487 | .flex-wrap-reverse{flex-wrap:wrap-reverse;} 488 | .flex-no-wrap{flex-wrap:nowrap;} 489 | 490 | 491 | /*** Grid ***/ 492 | .flow-row{grid-auto-flow:row;} 493 | .flow-col{grid-auto-flow:column;} 494 | .flow-row-dense{grid-auto-flow:row dense;} 495 | .flow-column-dense{grid-auto-flow:column dense;} 496 | .row-auto{grid-row:auto;} 497 | .col-auto{grid-column:auto;} 498 | .col-end-auto{grid-column-end: auto;} 499 | .rows-end-auto{grid-row-end:auto;} 500 | .rows-none{grid-template-rows:none;} 501 | .col-1{grid-template-columns:repeat(1, minmax(0, 1fr));} 502 | .col-span-1{grid-column: span 1 / span 1;} 503 | .col-start-1{grid-column-start: 1;} 504 | .row-start-1{grid-row-start: 1;} 505 | .col-end-1{grid-column-end: 1;} 506 | .row-end-1{grid-row-end: 1;} 507 | .row-1{grid-template-rows: repeat(1, minmax(0, 1fr));} 508 | .col-2{grid-template-columns:repeat(2, minmax(0, 1fr));} 509 | .col-span-2{grid-column: span 2 / span 2;} 510 | .col-start-2{grid-column-start: 2;} 511 | .row-start-2{grid-row-start: 2;} 512 | .col-end-2{grid-column-end: 2;} 513 | .row-end-2{grid-row-end: 2;} 514 | .row-2{grid-template-rows: repeat(2, minmax(0, 1fr));} 515 | .col-3{grid-template-columns:repeat(3, minmax(0, 1fr));} 516 | .col-span-3{grid-column: span 3 / span 3;} 517 | .col-start-3{grid-column-start: 3;} 518 | .row-start-3{grid-row-start: 3;} 519 | .col-end-3{grid-column-end: 3;} 520 | .row-end-3{grid-row-end: 3;} 521 | .row-3{grid-template-rows: repeat(3, minmax(0, 1fr));} 522 | .col-4{grid-template-columns:repeat(4, minmax(0, 1fr));} 523 | .col-span-4{grid-column: span 4 / span 4;} 524 | .col-start-4{grid-column-start: 4;} 525 | .row-start-4{grid-row-start: 4;} 526 | .col-end-4{grid-column-end: 4;} 527 | .row-end-4{grid-row-end: 4;} 528 | .row-4{grid-template-rows: repeat(4, minmax(0, 1fr));} 529 | .col-5{grid-template-columns:repeat(5, minmax(0, 1fr));} 530 | .col-span-5{grid-column: span 5 / span 5;} 531 | .col-start-5{grid-column-start: 5;} 532 | .row-start-5{grid-row-start: 5;} 533 | .col-end-5{grid-column-end: 5;} 534 | .row-end-5{grid-row-end: 5;} 535 | .row-5{grid-template-rows: repeat(5, minmax(0, 1fr));} 536 | .col-6{grid-template-columns:repeat(6, minmax(0, 1fr));} 537 | .col-span-6{grid-column: span 6 / span 6;} 538 | .col-start-6{grid-column-start: 6;} 539 | .row-start-6{grid-row-start: 6;} 540 | .col-end-6{grid-column-end: 6;} 541 | .row-end-6{grid-row-end: 6;} 542 | .row-6{grid-template-rows: repeat(6, minmax(0, 1fr));} 543 | 544 | 545 | /*** Box alignment ***/ 546 | .align-items-stretch{align-items:stretch;} 547 | .align-items-center{align-items:center;} 548 | .align-items-start{align-items:start;} 549 | .align-items-end{align-items:end;} 550 | .align-items-self-start{align-items:self-start;} 551 | .align-items-self-end{align-items:self-end;} 552 | .align-items-flex-start{align-items:flex-start;} 553 | .align-items-flex-end{align-items:flex-end;} 554 | .align-items-baseline{align-items:baseline;} 555 | 556 | .align-content-stretch{align-content:stretch;} 557 | .align-content-center{align-content:center;} 558 | .align-content-start{align-content:start;} 559 | .align-content-end{align-content:end;} 560 | .align-content-flex-start{align-content:flex-start;} 561 | .align-content-flex-end{align-content:flex-end;} 562 | .align-content-baseline{align-content:baseline;} 563 | .align-content-between{align-content:space-between;} 564 | .align-content-around{align-content:space-around;} 565 | .align-content-evenly{align-content:space-evenly;} 566 | 567 | .align-self-stretch{align-self:stretch;} 568 | .align-self-auto{align-self:auto;} 569 | .align-self-center{align-self:center;} 570 | .align-self-start{align-self:start;} 571 | .align-self-end{align-self:end;} 572 | .align-self-self-start{align-self:self-start;} 573 | .align-self-self-end{align-self:self-end;} 574 | .align-self-flex-start{align-self:flex-start;} 575 | .align-self-flex-end{align-self:flex-end;} 576 | .align-self-baseline{align-self:baseline;} 577 | 578 | .justify-content-stretch{justify-content:stretch;} 579 | .justify-content-center{justify-content:center;} 580 | .justify-content-start{justify-content:start;} 581 | .justify-content-end{justify-content:end;} 582 | .justify-content-flex-start{justify-content:flex-start;} 583 | .justify-content-flex-end{justify-content:flex-end;} 584 | .justify-content-between{justify-content:space-between;} 585 | .justify-content-around{justify-content:space-around;} 586 | .justify-content-evenly{justify-content:space-evenly;} 587 | 588 | .justify-items-stretch{justify-items:stretch;} 589 | .justify-items-center{justify-items:center;} 590 | .justify-items-start{justify-items:start;} 591 | .justify-items-end{justify-items:end;} 592 | .justify-items-flex-start{justify-items:flex-start;} 593 | .justify-items-flex-end{justify-items:flex-end;} 594 | .justify-items-self-start{justify-items:self-start;} 595 | .justify-items-self-end{justify-items:self-end;} 596 | .justify-items-baseline{justify-items:baseline;} 597 | 598 | .justify-self-stretch{justify-self:stretch;} 599 | .justify-self-center{justify-self:center;} 600 | .justify-self-start{justify-self:start;} 601 | .justify-self-end{justify-self:end;} 602 | .justify-self-flex-start{justify-self:flex-start;} 603 | .justify-self-flex-end{justify-self:flex-end;} 604 | .justify-self-self-start{justify-self:self-start;} 605 | .justify-self-self-end{justify-self:self-end;} 606 | .justify-self-baseline{justify-self:baseline;} 607 | 608 | .place-content-stretch{place-content:stretch;} 609 | .place-content-center{place-content:center;} 610 | .place-content-start{place-content:start;} 611 | .place-content-end{place-content:end;} 612 | .place-content-flex-start{place-content:flex-start;} 613 | .place-content-flex-end{place-content:flex-end;} 614 | .place-content-between{place-content:space-between;} 615 | .place-content-around{place-content:space-around;} 616 | .place-content-evenly{place-content:space-evenly;} 617 | 618 | .place-items-stretch{place-items:stretch;} 619 | .place-items-center{place-items:center;} 620 | .place-items-start{place-items:start;} 621 | .place-items-end{place-items:end;} 622 | .place-items-self-start{place-items:self-start;} 623 | .place-items-self-end{place-items:self-end;} 624 | .place-items-flex-start{place-items:flex-start;} 625 | .place-items-flex-end{place-items:flex-end;} 626 | .place-items-baseline{place-items:baseline;} 627 | 628 | .place-self-stretch{place-self:stretch;} 629 | .place-self-center{place-self:center;} 630 | .place-self-start{place-self:start;} 631 | .place-self-end{place-self:end;} 632 | .place-self-flex-start{place-self:flex-start;} 633 | .place-self-flex-end{place-self:flex-end;} 634 | .place-self-self-start{place-self:self-start;} 635 | .place-self-self-end{place-self:self-end;} 636 | .place-self-baseline{place-self:baseline;} 637 | 638 | 639 | /*** Gap ***/ 640 | .gap-5{gap:var(--space--5);} 641 | .gap-4{gap:var(--space--4);} 642 | .gap-3{gap:var(--space--3);} 643 | .gap-2{gap:var(--space--2);} 644 | .gap-1{gap:var(--space--1);} 645 | .gap0{gap:var(--space-0);} 646 | .gap1{gap:var(--space-1);} 647 | .gap2{gap:var(--space-2);} 648 | .gap3{gap:var(--space-3);} 649 | .gap4{gap:var(--space-4);} 650 | .gap5{gap:var(--space-5);} 651 | 652 | 653 | /*** Order ***/ 654 | .order-first{order:-9999;} 655 | .order-last{order:9999;} 656 | .order-none{order:0;} 657 | .order-1{order:1;} 658 | .order-2{order:2;} 659 | .order-3{order:3;} 660 | .order-4{order:4;} 661 | .order-5{order:5;} 662 | .order-6{order:6;} 663 | 664 | 665 | /*** Z-Index ***/ 666 | .z-auto{z-index:auto;} 667 | .z1{z-index:1;} 668 | .z0{z-index:0;} 669 | .z-1{z-index:-1;} 670 | 671 | 672 | 673 | /*** Margin ***/ 674 | .m-none{margin:0} 675 | .mb-none{margin-block:0} 676 | .mbs-none{margin-block-start:0} 677 | .mbe-none{margin-block-end:0} 678 | .mi-none{margin-inline:0} 679 | .mis-none{margin-inline-start:0} 680 | .mie-none{margin-inline-end:0} 681 | .m-auto{margin:auto} 682 | .mb-auto{margin-block:auto} 683 | .mbs-auto{margin-block-start:auto} 684 | .mbe-auto{margin-block-end:auto} 685 | .mi-auto{margin-inline:auto} 686 | .mis-auto{margin-inline-start:auto} 687 | .mie-auto{margin-inline-end:auto} 688 | .m-5{margin:var(--space--5);} 689 | .mb-5{margin-block:var(--space--5);} 690 | .mbs-5{margin-block-start:var(--space--5);} 691 | .mbe-5{margin-block-end:var(--space--5);} 692 | .mi-5{margin-inline:var(--space--5);} 693 | .mis-5{margin-inline-start:var(--space--5);} 694 | .mie-5{margin-inline-end:var(--space--5);} 695 | .m-4{margin:var(--space--4);} 696 | .mb-4{margin-block:var(--space--4);} 697 | .mbs-4{margin-block-start:var(--space--4);} 698 | .mbe-4{margin-block-end:var(--space--4);} 699 | .mi-4{margin-inline:var(--space--4);} 700 | .mis-4{margin-inline-start:var(--space--4);} 701 | .mie-4{margin-inline-end:var(--space--4);} 702 | .m-3{margin:var(--space--3);} 703 | .mb-3{margin-block:var(--space--3);} 704 | .mbs-3{margin-block-start:var(--space--3);} 705 | .mbe-3{margin-block-end:var(--space--3);} 706 | .mi-3{margin-inline:var(--space--3);} 707 | .mis-3{margin-inline-start:var(--space--3);} 708 | .mie-3{margin-inline-end:var(--space--3);} 709 | .m-2{margin:var(--space--2);} 710 | .mb-2{margin-block:var(--space--2);} 711 | .mbs-2{margin-block-start:var(--space--2);} 712 | .mbe-2{margin-block-end:var(--space--2);} 713 | .mi-2{margin-inline:var(--space--2);} 714 | .mis-2{margin-inline-start:var(--space--2);} 715 | .mie-2{margin-inline-end:var(--space--2);} 716 | .m-1{margin:var(--space--1);} 717 | .mb-1{margin-block:var(--space--1);} 718 | .mbs-1{margin-block-start:var(--space--1);} 719 | .mbe-1{margin-block-end:var(--space--1);} 720 | .mi-1{margin-inline:var(--space--1);} 721 | .mis-1{margin-inline-start:var(--space--1);} 722 | .mie-1{margin-inline-end:var(--space--1);} 723 | .m0{margin:var(--space-0);} 724 | .mb0{margin-block:var(--space-0);} 725 | .mbs0{margin-block-start:var(--space-0);} 726 | .mbe0{margin-block-end:var(--space-0);} 727 | .mi0{margin-inline:var(--space-0);} 728 | .mis0{margin-inline-start:var(--space-0);} 729 | .mie0{margin-inline-end:var(--space-0);} 730 | .m1{margin:var(--space-1);} 731 | .mb1{margin-block:var(--space-1);} 732 | .mbs1{margin-block-start:var(--space-1);} 733 | .mbe1{margin-block-end:var(--space-1);} 734 | .mi1{margin-inline:var(--space-1);} 735 | .mis1{margin-inline-start:var(--space-1);} 736 | .mie1{margin-inline-end:var(--space-1);} 737 | .m2{margin:var(--space-2);} 738 | .mb2{margin-block:var(--space-2);} 739 | .mbs2{margin-block-start:var(--space-2);} 740 | .mbe2{margin-block-end:var(--space-2);} 741 | .mi2{margin-inline:var(--space-2);} 742 | .mis2{margin-inline-start:var(--space-2);} 743 | .mie2{margin-inline-end:var(--space-2);} 744 | .m3{margin:var(--space-3);} 745 | .mb3{margin-block:var(--space-3);} 746 | .mbs3{margin-block-start:var(--space-3);} 747 | .mbe3{margin-block-end:var(--space-3);} 748 | .mi3{margin-inline:var(--space-3);} 749 | .mis3{margin-inline-start:var(--space-3);} 750 | .mie3{margin-inline-end:var(--space-3);} 751 | .m4{margin:var(--space-4);} 752 | .mb4{margin-block:var(--space-4);} 753 | .mbs4{margin-block-start:var(--space-4);} 754 | .mbe4{margin-block-end:var(--space-4);} 755 | .mi4{margin-inline:var(--space-4);} 756 | .mis4{margin-inline-start:var(--space-4);} 757 | .mie4{margin-inline-end:var(--space-4);} 758 | .m5{margin:var(--space-5);} 759 | .mb5{margin-block:var(--space-5);} 760 | .mbs5{margin-block-start:var(--space-5);} 761 | .mbe5{margin-block-end:var(--space-5);} 762 | .mi5{margin-inline:var(--space-5);} 763 | .mis5{margin-inline-start:var(--space-5);} 764 | .mie5{margin-inline-end:var(--space-5);} 765 | 766 | 767 | /*** Padding ***/ 768 | .p-none{padding:0} 769 | .pb-none{padding-block:0} 770 | .pbs-none{padding-block-start:0} 771 | .pbe-none{padding-block-end:0} 772 | .pi-none{padding-inline:0} 773 | .pis-none{padding-inline-start:0} 774 | .pie-none{padding-inline-end:0} 775 | .p-5{padding:var(--space--5);} 776 | .pb-5{padding-block:var(--space--5);} 777 | .pbs-5{padding-block-start:var(--space--5);} 778 | .pbe-5{padding-block-end:var(--space--5);} 779 | .pi-5{padding-inline:var(--space--5);} 780 | .pis-5{padding-inline-start:var(--space--5);} 781 | .pie-5{padding-inline-end:var(--space--5);} 782 | .p-4{padding:var(--space--4);} 783 | .pb-4{padding-block:var(--space--4);} 784 | .pbs-4{padding-block-start:var(--space--4);} 785 | .pbe-4{padding-block-end:var(--space--4);} 786 | .pi-4{padding-inline:var(--space--4);} 787 | .pis-4{padding-inline-start:var(--space--4);} 788 | .pie-4{padding-inline-end:var(--space--4);} 789 | .p-3{padding:var(--space--3);} 790 | .pb-3{padding-block:var(--space--3);} 791 | .pbs-3{padding-block-start:var(--space--3);} 792 | .pbe-3{padding-block-end:var(--space--3);} 793 | .pi-3{padding-inline:var(--space--3);} 794 | .pis-3{padding-inline-start:var(--space--3);} 795 | .pie-3{padding-inline-end:var(--space--3);} 796 | .p-2{padding:var(--space--2);} 797 | .pb-2{padding-block:var(--space--2);} 798 | .pbs-2{padding-block-start:var(--space--2);} 799 | .pbe-2{padding-block-end:var(--space--2);} 800 | .pi-2{padding-inline:var(--space--2);} 801 | .pis-2{padding-inline-start:var(--space--2);} 802 | .pie-2{padding-inline-end:var(--space--2);} 803 | .p-1{padding:var(--space--1);} 804 | .pb-1{padding-block:var(--space--1);} 805 | .pbs-1{padding-block-start:var(--space--1);} 806 | .pbe-1{padding-block-end:var(--space--1);} 807 | .pi-1{padding-inline:var(--space--1);} 808 | .pis-1{padding-inline-start:var(--space--1);} 809 | .pie-1{padding-inline-end:var(--space--1);} 810 | .p0{padding:var(--space-0);} 811 | .pb0{padding-block:var(--space-0);} 812 | .pbs0{padding-block-start:var(--space-0);} 813 | .pbe0{padding-block-end:var(--space-0);} 814 | .pi0{padding-inline:var(--space-0);} 815 | .pis0{padding-inline-start:var(--space-0);} 816 | .pie0{padding-inline-end:var(--space-0);} 817 | .p1{padding:var(--space-1);} 818 | .pb1{padding-block:var(--space-1);} 819 | .pbs1{padding-block-start:var(--space-1);} 820 | .pbe1{padding-block-end:var(--space-1);} 821 | .pi1{padding-inline:var(--space-1);} 822 | .pis1{padding-inline-start:var(--space-1);} 823 | .pie1{padding-inline-end:var(--space-1);} 824 | .p2{padding:var(--space-2);} 825 | .pb2{padding-block:var(--space-2);} 826 | .pbs2{padding-block-start:var(--space-2);} 827 | .pbe2{padding-block-end:var(--space-2);} 828 | .pi2{padding-inline:var(--space-2);} 829 | .pis2{padding-inline-start:var(--space-2);} 830 | .pie2{padding-inline-end:var(--space-2);} 831 | .p3{padding:var(--space-3);} 832 | .pb3{padding-block:var(--space-3);} 833 | .pbs3{padding-block-start:var(--space-3);} 834 | .pbe3{padding-block-end:var(--space-3);} 835 | .pi3{padding-inline:var(--space-3);} 836 | .pis3{padding-inline-start:var(--space-3);} 837 | .pie3{padding-inline-end:var(--space-3);} 838 | .p4{padding:var(--space-4);} 839 | .pb4{padding-block:var(--space-4);} 840 | .pbs4{padding-block-start:var(--space-4);} 841 | .pbe4{padding-block-end:var(--space-4);} 842 | .pi4{padding-inline:var(--space-4);} 843 | .pis4{padding-inline-start:var(--space-4);} 844 | .pie4{padding-inline-end:var(--space-4);} 845 | .p5{padding:var(--space-5);} 846 | .pb5{padding-block:var(--space-5);} 847 | .pbs5{padding-block-start:var(--space-5);} 848 | .pbe5{padding-block-end:var(--space-5);} 849 | .pi5{padding-inline:var(--space-5);} 850 | .pis5{padding-inline-start:var(--space-5);} 851 | .pie5{padding-inline-end:var(--space-5);} 852 | 853 | 854 | /*** Overflow ***/ 855 | .overflow-auto{overflow:auto;} 856 | .truncate, 857 | .overflow-hidden{overflow:hidden;} 858 | .overflow-visible{overflow:visible;} 859 | .overflow-scroll{overflow:scroll;} 860 | .overflow-x-auto{overflow-x:auto;} 861 | .overflow-y-auto{overflow-y:auto;} 862 | .overflow-x-scroll{overflow-x:scroll;} 863 | .overflow-x-hidden{overflow-x:hidden;} 864 | .overflow-y-scroll{overflow-y:scroll;} 865 | .overflow-y-hidden{overflow-y:hidden;} 866 | .scrolling-touch{-webkit-overflow-scrolling:touch;} 867 | .scrolling-auto{-webkit-overflow-scrolling:auto;} 868 | 869 | 870 | /*** Visibility ***/ 871 | .invisible{visibility:hidden;} 872 | .visible{visibility:visible;} 873 | 874 | 875 | /*** Object Fit ***/ 876 | .object-contain{object-fit:contain;} 877 | .object-cover{object-fit:cover;} 878 | .object-fill{object-fit:fill;} 879 | .object-none{object-fit:none;} 880 | .object-scale-down{object-fit:scale-down;} 881 | 882 | 883 | /*** Object Position ***/ 884 | .object-b{object-position:bottom;} 885 | .object-c{object-position:center;} 886 | .object-t{object-position:top;} 887 | .object-r{object-position:right;} 888 | .object-rt{object-position:right top;} 889 | .object-rb{object-position:right bottom;} 890 | .object-l{object-position:left;} 891 | .object-lt{object-position:left top;} 892 | .object-lb{object-position:left bottom;} 893 | 894 | 895 | /*** Outline ***/ 896 | .outline-none{outline:0;} 897 | 898 | 899 | /*** Opacity ***/ 900 | .opacity-0{opacity:0;} 901 | .opacity-25{opacity:0.25;} 902 | .opacity-50{opacity:0.5;} 903 | .opacity-75{opacity:0.75;} 904 | .opacity-100{opacity:1.0;} 905 | 906 | 907 | /*** Cursor ***/ 908 | .cursor-auto{cursor:auto;} 909 | .cursor-default{cursor:default;} 910 | .cursor-pointer{cursor:pointer;} 911 | .cursor-wait{cursor:wait;} 912 | .cursor-text{cursor:text;} 913 | .cursor-move{cursor:move;} 914 | .cursor-not-allowed{cursor:not-allowed;} 915 | .cursor-grab{cursor:grab;} 916 | .cursor-grabbing{cursor:grabbing;} 917 | 918 | 919 | /*** User Select ***/ 920 | .select-none{user-select:none;} 921 | .select-text{user-select:text;} 922 | .select-all{user-select:all;} 923 | .select-auto{user-select:auto;} 924 | 925 | 926 | /*** Debug ***/ 927 | .debug * { outline: 2px dotted var(--debug-color, rebeccapurple) } 928 | .debug *:hover { border:2px solid var(--debug-color, rebeccapurple) } 929 | 930 | 931 | @media only screen and (min-width:48em) { 932 | 933 | 934 | 935 | /*** Font Sizes ***/ 936 | .text-2-lg{font-size:var(--text--2);} 937 | .text-1-lg{font-size:var(--text--1);} 938 | .text0-lg{font-size:var(--text-0);} 939 | .text1-lg{font-size:var(--text-1);} 940 | .text2-lg{font-size:var(--text-2);} 941 | .text3-lg{font-size:var(--text-3);} 942 | .text4-lg{font-size:var(--text-4);} 943 | .text5-lg{font-size:var(--text-5);} 944 | 945 | 946 | /*** Style ***/ 947 | .italic-lg{font-style:italic;} 948 | .not-italic-lg{font-style:normal;} 949 | 950 | 951 | /*** Line Height ***/ 952 | .leading5-lg{line-height: 2;} 953 | .leading4-lg{line-height: 1.625;} 954 | .leading3-lg{line-height: 1.5;} 955 | .leading2-lg{line-height: 1.375;} 956 | .leading1-lg{line-height: 1.25;} 957 | .leading0-lg, 958 | .leading-none-lg{line-height:1;} 959 | 960 | 961 | /*** Tracking ***/ 962 | .tracking3-lg{letter-spacing: 0.1em;} 963 | .tracking2-lg{letter-spacing: 0.05em;} 964 | .tracking1-lg{letter-spacing: 0.025em;} 965 | .tracking0-lg{letter-spacing: 0;} 966 | .tracking-1-lg{letter-spacing: -0.025em;} 967 | .tracking-2-lg{letter-spacing: -0.05em;} 968 | 969 | 970 | /*** Font Weight ***/ 971 | .font-hairline-lg{font-weight:100;} 972 | .font-thin-lg{font-weight:200;} 973 | .font-light-lg{font-weight:300;} 974 | .font-normal-lg{font-weight:400;} 975 | .font-medium-lg{font-weight:500;} 976 | .font-semibold-lg{font-weight:600;} 977 | .font-bold-lg{font-weight:700;} 978 | .font-extrabold-lg{font-weight:800;} 979 | .font-black-lg{font-weight:900;} 980 | 981 | 982 | /*** Text Transform ***/ 983 | .uppercase-lg{text-transform:uppercase;} 984 | .lowercase-lg{text-transform:lowercase;} 985 | .capitalize-lg{text-transform:capitalize;} 986 | .normal-case-lg{text-transform:none;} 987 | 988 | 989 | /*** Text alignment ***/ 990 | .text-inherit-lg{text-align:inherit;} 991 | .text-center-lg{text-align:center;} 992 | .text-start-lg{text-align:start;} 993 | .text-end-lg{text-align:end;} 994 | 995 | 996 | /*** Decoration ***/ 997 | .no-underline-lg{text-decoration:none;} 998 | .underline-lg{text-decoration:underline;} 999 | .line-through-lg{text-decoration:line-through;} 1000 | 1001 | 1002 | /*** List ***/ 1003 | .list-none-lg{list-style:none;} 1004 | .list-disc-lg{list-style:disc;} 1005 | .list-decimal-lg{list-style:decimal;} 1006 | 1007 | 1008 | /*** Whitespace ***/ 1009 | .whitespace-normal-lg{white-space:normal;} 1010 | .truncate-lg, 1011 | .whitespace-no-wrap-lg{white-space:nowrap;} 1012 | .whitespace-pre-lg{white-space:pre;} 1013 | .whitespace-pre-line-lg{white-space:pre-line;} 1014 | .whitespace-pre-wrap-lg{white-space:pre-wrap;} 1015 | 1016 | 1017 | /*** Wordbreak ***/ 1018 | .break-normal-lg{word-break:normal} 1019 | .break-normal-lg, 1020 | .break-word-lg{overflow-wrap:normal} 1021 | .break-all-lg{word-break:break-all} 1022 | .break-keep-lg{word-break:keep-all} 1023 | .truncate-lg, 1024 | .ellipsis-lg{text-overflow:ellipsis} 1025 | 1026 | 1027 | 1028 | /*** Layout ***/ 1029 | 1030 | 1031 | /*** Position ***/ 1032 | .sticky-lg{position:sticky;} 1033 | .static-lg{position:static;} 1034 | .absolute-lg{position:absolute;} 1035 | .relative-lg{position:relative;} 1036 | .fixed-lg{position:fixed;} 1037 | 1038 | 1039 | /*** Inset ***/ 1040 | .inset-0-lg{inset:0} 1041 | .inset-b-0-lg{inset-block:0;} 1042 | .inset-bs-0-lg{inset-block-start:0;} 1043 | .inset-be-0-lg{inset-block-end:0;} 1044 | .inset-i-0-lg{inset-inline:0;} 1045 | .inset-is-0-lg{inset-inline-start:0;} 1046 | .inset-ie-0-lg{inset-inline-end:0;} 1047 | 1048 | 1049 | /*** Display ***/ 1050 | .hidden-lg{display:none;} 1051 | .block-lg{display:block;} 1052 | .inline-lg{display:inline;} 1053 | .inline-block-lg{display:inline-block;} 1054 | .flex-lg{display:flex;} 1055 | .inline-flex-lg{display:inline-flex;} 1056 | .grid-lg{display:grid;} 1057 | .inline-grid-lg{display:inline-grid;} 1058 | 1059 | 1060 | /*** Size ***/ 1061 | .sb-0-lg{block-size:0} 1062 | .sb-auto-lg{block-size:auto} 1063 | .sb-100-lg{block-size:100%} 1064 | .sb-min-0-lg{min-block-size:0} 1065 | .sb-min-100-lg{min-block-size:100%} 1066 | .sb-max-0-lg{max-block-size:0} 1067 | .sb-max-100-lg{max-block-size:100%} 1068 | .sb-100vw-lg{block-size:100vw} 1069 | .sb-100vh-lg{block-size:100vh} 1070 | .si-0-lg{inline-size:0} 1071 | .si-auto-lg{inline-size:auto} 1072 | .si-100-lg{inline-size:100%} 1073 | .si-min-0-lg{min-inline-size:0} 1074 | .si-min-100-lg{min-inline-size:100%} 1075 | .si-max0-lg{max-inline-size:0} 1076 | .si-max-100-lg{max-inline-size:100%} 1077 | .si-100vw-lg{inline-size:100vw} 1078 | .si-100vh-lg{inline-size:100vh} 1079 | 1080 | 1081 | /*** Flex ***/ 1082 | .flex-1-lg{flex: 1 1 0%;} 1083 | .flex-auto-lg{flex: 1 1 auto;} 1084 | .flex-initial-lg{flex: 0 1 auto;} 1085 | .flex-none-lg{flex:none;} 1086 | .flex-row-lg{flex-direction:row;} 1087 | .flex-row-reverse-lg{flex-direction:row-reverse;} 1088 | .flex-col-lg{flex-direction:column;} 1089 | .flex-col-reverse-lg{flex-direction:column-reverse;} 1090 | .flex-grow-lg{flex-grow:1;} 1091 | .flex-grow-0-lg{flex-grow:0;} 1092 | .flex-shrink-lg{flex-shrink:1;} 1093 | .flex-shrink-0-lg{flex-shrink:0;} 1094 | .flex-wrap-lg{flex-wrap:wrap;} 1095 | .flex-wrap-reverse-lg{flex-wrap:wrap-reverse;} 1096 | .flex-no-wrap-lg{flex-wrap:nowrap;} 1097 | 1098 | 1099 | /*** Grid ***/ 1100 | .flow-row-lg{grid-auto-flow:row;} 1101 | .flow-col-lg{grid-auto-flow:column;} 1102 | .flow-row-dense-lg{grid-auto-flow:row dense;} 1103 | .flow-column-dense-lg{grid-auto-flow:column dense;} 1104 | .row-auto-lg{grid-row:auto;} 1105 | .col-auto-lg{grid-column:auto;} 1106 | .col-end-auto-lg{grid-column-end: auto;} 1107 | .rows-end-auto-lg{grid-row-end:auto;} 1108 | .rows-none-lg{grid-template-rows:none;} 1109 | .col-1-lg{grid-template-columns:repeat(1, minmax(0, 1fr));} 1110 | .col-span-1-lg{grid-column: span 1 / span 1;} 1111 | .col-start-1-lg{grid-column-start: 1;} 1112 | .row-start-1-lg{grid-row-start: 1;} 1113 | .col-end-1-lg{grid-column-end: 1;} 1114 | .row-end-1-lg{grid-row-end: 1;} 1115 | .row-1-lg{grid-template-rows: repeat(1, minmax(0, 1fr));} 1116 | .col-2-lg{grid-template-columns:repeat(2, minmax(0, 1fr));} 1117 | .col-span-2-lg{grid-column: span 2 / span 2;} 1118 | .col-start-2-lg{grid-column-start: 2;} 1119 | .row-start-2-lg{grid-row-start: 2;} 1120 | .col-end-2-lg{grid-column-end: 2;} 1121 | .row-end-2-lg{grid-row-end: 2;} 1122 | .row-2-lg{grid-template-rows: repeat(2, minmax(0, 1fr));} 1123 | .col-3-lg{grid-template-columns:repeat(3, minmax(0, 1fr));} 1124 | .col-span-3-lg{grid-column: span 3 / span 3;} 1125 | .col-start-3-lg{grid-column-start: 3;} 1126 | .row-start-3-lg{grid-row-start: 3;} 1127 | .col-end-3-lg{grid-column-end: 3;} 1128 | .row-end-3-lg{grid-row-end: 3;} 1129 | .row-3-lg{grid-template-rows: repeat(3, minmax(0, 1fr));} 1130 | .col-4-lg{grid-template-columns:repeat(4, minmax(0, 1fr));} 1131 | .col-span-4-lg{grid-column: span 4 / span 4;} 1132 | .col-start-4-lg{grid-column-start: 4;} 1133 | .row-start-4-lg{grid-row-start: 4;} 1134 | .col-end-4-lg{grid-column-end: 4;} 1135 | .row-end-4-lg{grid-row-end: 4;} 1136 | .row-4-lg{grid-template-rows: repeat(4, minmax(0, 1fr));} 1137 | .col-5-lg{grid-template-columns:repeat(5, minmax(0, 1fr));} 1138 | .col-span-5-lg{grid-column: span 5 / span 5;} 1139 | .col-start-5-lg{grid-column-start: 5;} 1140 | .row-start-5-lg{grid-row-start: 5;} 1141 | .col-end-5-lg{grid-column-end: 5;} 1142 | .row-end-5-lg{grid-row-end: 5;} 1143 | .row-5-lg{grid-template-rows: repeat(5, minmax(0, 1fr));} 1144 | .col-6-lg{grid-template-columns:repeat(6, minmax(0, 1fr));} 1145 | .col-span-6-lg{grid-column: span 6 / span 6;} 1146 | .col-start-6-lg{grid-column-start: 6;} 1147 | .row-start-6-lg{grid-row-start: 6;} 1148 | .col-end-6-lg{grid-column-end: 6;} 1149 | .row-end-6-lg{grid-row-end: 6;} 1150 | .row-6-lg{grid-template-rows: repeat(6, minmax(0, 1fr));} 1151 | 1152 | 1153 | /*** Box alignment ***/ 1154 | .align-items-stretch-lg{align-items:stretch;} 1155 | .align-items-center-lg{align-items:center;} 1156 | .align-items-start-lg{align-items:start;} 1157 | .align-items-end-lg{align-items:end;} 1158 | .align-items-self-start-lg{align-items:self-start;} 1159 | .align-items-self-end-lg{align-items:self-end;} 1160 | .align-items-flex-start-lg{align-items:flex-start;} 1161 | .align-items-flex-end-lg{align-items:flex-end;} 1162 | .align-items-baseline-lg{align-items:baseline;} 1163 | 1164 | .align-content-stretch-lg{align-content:stretch;} 1165 | .align-content-center-lg{align-content:center;} 1166 | .align-content-start-lg{align-content:start;} 1167 | .align-content-end-lg{align-content:end;} 1168 | .align-content-flex-start-lg{align-content:flex-start;} 1169 | .align-content-flex-end-lg{align-content:flex-end;} 1170 | .align-content-baseline-lg{align-content:baseline;} 1171 | .align-content-between-lg{align-content:space-between;} 1172 | .align-content-around-lg{align-content:space-around;} 1173 | .align-content-evenly-lg{align-content:space-evenly;} 1174 | 1175 | .align-self-stretch-lg{align-self:stretch;} 1176 | .align-self-auto-lg{align-self:auto;} 1177 | .align-self-center-lg{align-self:center;} 1178 | .align-self-start-lg{align-self:start;} 1179 | .align-self-end-lg{align-self:end;} 1180 | .align-self-self-start-lg{align-self:self-start;} 1181 | .align-self-self-end-lg{align-self:self-end;} 1182 | .align-self-flex-start-lg{align-self:flex-start;} 1183 | .align-self-flex-end-lg{align-self:flex-end;} 1184 | .align-self-baseline-lg{align-self:baseline;} 1185 | 1186 | .justify-content-stretch-lg{justify-content:stretch;} 1187 | .justify-content-center-lg{justify-content:center;} 1188 | .justify-content-start-lg{justify-content:start;} 1189 | .justify-content-end-lg{justify-content:end;} 1190 | .justify-content-flex-start-lg{justify-content:flex-start;} 1191 | .justify-content-flex-end-lg{justify-content:flex-end;} 1192 | .justify-content-between-lg{justify-content:space-between;} 1193 | .justify-content-around-lg{justify-content:space-around;} 1194 | .justify-content-evenly-lg{justify-content:space-evenly;} 1195 | 1196 | .justify-items-stretch-lg{justify-items:stretch;} 1197 | .justify-items-center-lg{justify-items:center;} 1198 | .justify-items-start-lg{justify-items:start;} 1199 | .justify-items-end-lg{justify-items:end;} 1200 | .justify-items-flex-start-lg{justify-items:flex-start;} 1201 | .justify-items-flex-end-lg{justify-items:flex-end;} 1202 | .justify-items-self-start-lg{justify-items:self-start;} 1203 | .justify-items-self-end-lg{justify-items:self-end;} 1204 | .justify-items-baseline-lg{justify-items:baseline;} 1205 | 1206 | .justify-self-stretch-lg{justify-self:stretch;} 1207 | .justify-self-center-lg{justify-self:center;} 1208 | .justify-self-start-lg{justify-self:start;} 1209 | .justify-self-end-lg{justify-self:end;} 1210 | .justify-self-flex-start-lg{justify-self:flex-start;} 1211 | .justify-self-flex-end-lg{justify-self:flex-end;} 1212 | .justify-self-self-start-lg{justify-self:self-start;} 1213 | .justify-self-self-end-lg{justify-self:self-end;} 1214 | .justify-self-baseline-lg{justify-self:baseline;} 1215 | 1216 | .place-content-stretch-lg{place-content:stretch;} 1217 | .place-content-center-lg{place-content:center;} 1218 | .place-content-start-lg{place-content:start;} 1219 | .place-content-end-lg{place-content:end;} 1220 | .place-content-flex-start-lg{place-content:flex-start;} 1221 | .place-content-flex-end-lg{place-content:flex-end;} 1222 | .place-content-between-lg{place-content:space-between;} 1223 | .place-content-around-lg{place-content:space-around;} 1224 | .place-content-evenly-lg{place-content:space-evenly;} 1225 | 1226 | .place-items-stretch-lg{place-items:stretch;} 1227 | .place-items-center-lg{place-items:center;} 1228 | .place-items-start-lg{place-items:start;} 1229 | .place-items-end-lg{place-items:end;} 1230 | .place-items-self-start-lg{place-items:self-start;} 1231 | .place-items-self-end-lg{place-items:self-end;} 1232 | .place-items-flex-start-lg{place-items:flex-start;} 1233 | .place-items-flex-end-lg{place-items:flex-end;} 1234 | .place-items-baseline-lg{place-items:baseline;} 1235 | 1236 | .place-self-stretch-lg{place-self:stretch;} 1237 | .place-self-center-lg{place-self:center;} 1238 | .place-self-start-lg{place-self:start;} 1239 | .place-self-end-lg{place-self:end;} 1240 | .place-self-flex-start-lg{place-self:flex-start;} 1241 | .place-self-flex-end-lg{place-self:flex-end;} 1242 | .place-self-self-start-lg{place-self:self-start;} 1243 | .place-self-self-end-lg{place-self:self-end;} 1244 | .place-self-baseline-lg{place-self:baseline;} 1245 | 1246 | 1247 | /*** Gap ***/ 1248 | .gap-5-lg{gap:var(--space--5);} 1249 | .gap-4-lg{gap:var(--space--4);} 1250 | .gap-3-lg{gap:var(--space--3);} 1251 | .gap-2-lg{gap:var(--space--2);} 1252 | .gap-1-lg{gap:var(--space--1);} 1253 | .gap0-lg{gap:var(--space-0);} 1254 | .gap1-lg{gap:var(--space-1);} 1255 | .gap2-lg{gap:var(--space-2);} 1256 | .gap3-lg{gap:var(--space-3);} 1257 | .gap4-lg{gap:var(--space-4);} 1258 | .gap5-lg{gap:var(--space-5);} 1259 | 1260 | 1261 | /*** Order ***/ 1262 | .order-first-lg{order:-9999;} 1263 | .order-last-lg{order:9999;} 1264 | .order-none-lg{order:0;} 1265 | .order-1-lg{order:1;} 1266 | .order-2-lg{order:2;} 1267 | .order-3-lg{order:3;} 1268 | .order-4-lg{order:4;} 1269 | .order-5-lg{order:5;} 1270 | .order-6-lg{order:6;} 1271 | 1272 | 1273 | /*** Z-Index ***/ 1274 | .z-auto-lg{z-index:auto;} 1275 | .z1-lg{z-index:1;} 1276 | .z0-lg{z-index:0;} 1277 | .z-1-lg{z-index:-1;} 1278 | 1279 | 1280 | 1281 | /*** Margin ***/ 1282 | .m-none-lg{margin:0} 1283 | .mb-none-lg{margin-block:0} 1284 | .mbs-none-lg{margin-block-start:0} 1285 | .mbe-none-lg{margin-block-end:0} 1286 | .mi-none-lg{margin-inline:0} 1287 | .mis-none-lg{margin-inline-start:0} 1288 | .mie-none-lg{margin-inline-end:0} 1289 | .m-auto-lg{margin:auto} 1290 | .mb-auto-lg{margin-block:auto} 1291 | .mbs-auto-lg{margin-block-start:auto} 1292 | .mbe-auto-lg{margin-block-end:auto} 1293 | .mi-auto-lg{margin-inline:auto} 1294 | .mis-auto-lg{margin-inline-start:auto} 1295 | .mie-auto-lg{margin-inline-end:auto} 1296 | .m-5-lg{margin:var(--space--5);} 1297 | .mb-5-lg{margin-block:var(--space--5);} 1298 | .mbs-5-lg{margin-block-start:var(--space--5);} 1299 | .mbe-5-lg{margin-block-end:var(--space--5);} 1300 | .mi-5-lg{margin-inline:var(--space--5);} 1301 | .mis-5-lg{margin-inline-start:var(--space--5);} 1302 | .mie-5-lg{margin-inline-end:var(--space--5);} 1303 | .m-4-lg{margin:var(--space--4);} 1304 | .mb-4-lg{margin-block:var(--space--4);} 1305 | .mbs-4-lg{margin-block-start:var(--space--4);} 1306 | .mbe-4-lg{margin-block-end:var(--space--4);} 1307 | .mi-4-lg{margin-inline:var(--space--4);} 1308 | .mis-4-lg{margin-inline-start:var(--space--4);} 1309 | .mie-4-lg{margin-inline-end:var(--space--4);} 1310 | .m-3-lg{margin:var(--space--3);} 1311 | .mb-3-lg{margin-block:var(--space--3);} 1312 | .mbs-3-lg{margin-block-start:var(--space--3);} 1313 | .mbe-3-lg{margin-block-end:var(--space--3);} 1314 | .mi-3-lg{margin-inline:var(--space--3);} 1315 | .mis-3-lg{margin-inline-start:var(--space--3);} 1316 | .mie-3-lg{margin-inline-end:var(--space--3);} 1317 | .m-2-lg{margin:var(--space--2);} 1318 | .mb-2-lg{margin-block:var(--space--2);} 1319 | .mbs-2-lg{margin-block-start:var(--space--2);} 1320 | .mbe-2-lg{margin-block-end:var(--space--2);} 1321 | .mi-2-lg{margin-inline:var(--space--2);} 1322 | .mis-2-lg{margin-inline-start:var(--space--2);} 1323 | .mie-2-lg{margin-inline-end:var(--space--2);} 1324 | .m-1-lg{margin:var(--space--1);} 1325 | .mb-1-lg{margin-block:var(--space--1);} 1326 | .mbs-1-lg{margin-block-start:var(--space--1);} 1327 | .mbe-1-lg{margin-block-end:var(--space--1);} 1328 | .mi-1-lg{margin-inline:var(--space--1);} 1329 | .mis-1-lg{margin-inline-start:var(--space--1);} 1330 | .mie-1-lg{margin-inline-end:var(--space--1);} 1331 | .m0-lg{margin:var(--space-0);} 1332 | .mb0-lg{margin-block:var(--space-0);} 1333 | .mbs0-lg{margin-block-start:var(--space-0);} 1334 | .mbe0-lg{margin-block-end:var(--space-0);} 1335 | .mi0-lg{margin-inline:var(--space-0);} 1336 | .mis0-lg{margin-inline-start:var(--space-0);} 1337 | .mie0-lg{margin-inline-end:var(--space-0);} 1338 | .m1-lg{margin:var(--space-1);} 1339 | .mb1-lg{margin-block:var(--space-1);} 1340 | .mbs1-lg{margin-block-start:var(--space-1);} 1341 | .mbe1-lg{margin-block-end:var(--space-1);} 1342 | .mi1-lg{margin-inline:var(--space-1);} 1343 | .mis1-lg{margin-inline-start:var(--space-1);} 1344 | .mie1-lg{margin-inline-end:var(--space-1);} 1345 | .m2-lg{margin:var(--space-2);} 1346 | .mb2-lg{margin-block:var(--space-2);} 1347 | .mbs2-lg{margin-block-start:var(--space-2);} 1348 | .mbe2-lg{margin-block-end:var(--space-2);} 1349 | .mi2-lg{margin-inline:var(--space-2);} 1350 | .mis2-lg{margin-inline-start:var(--space-2);} 1351 | .mie2-lg{margin-inline-end:var(--space-2);} 1352 | .m3-lg{margin:var(--space-3);} 1353 | .mb3-lg{margin-block:var(--space-3);} 1354 | .mbs3-lg{margin-block-start:var(--space-3);} 1355 | .mbe3-lg{margin-block-end:var(--space-3);} 1356 | .mi3-lg{margin-inline:var(--space-3);} 1357 | .mis3-lg{margin-inline-start:var(--space-3);} 1358 | .mie3-lg{margin-inline-end:var(--space-3);} 1359 | .m4-lg{margin:var(--space-4);} 1360 | .mb4-lg{margin-block:var(--space-4);} 1361 | .mbs4-lg{margin-block-start:var(--space-4);} 1362 | .mbe4-lg{margin-block-end:var(--space-4);} 1363 | .mi4-lg{margin-inline:var(--space-4);} 1364 | .mis4-lg{margin-inline-start:var(--space-4);} 1365 | .mie4-lg{margin-inline-end:var(--space-4);} 1366 | .m5-lg{margin:var(--space-5);} 1367 | .mb5-lg{margin-block:var(--space-5);} 1368 | .mbs5-lg{margin-block-start:var(--space-5);} 1369 | .mbe5-lg{margin-block-end:var(--space-5);} 1370 | .mi5-lg{margin-inline:var(--space-5);} 1371 | .mis5-lg{margin-inline-start:var(--space-5);} 1372 | .mie5-lg{margin-inline-end:var(--space-5);} 1373 | 1374 | 1375 | /*** Padding ***/ 1376 | .p-none-lg{padding:0} 1377 | .pb-none-lg{padding-block:0} 1378 | .pbs-none-lg{padding-block-start:0} 1379 | .pbe-none-lg{padding-block-end:0} 1380 | .pi-none-lg{padding-inline:0} 1381 | .pis-none-lg{padding-inline-start:0} 1382 | .pie-none-lg{padding-inline-end:0} 1383 | .p-5-lg{padding:var(--space--5);} 1384 | .pb-5-lg{padding-block:var(--space--5);} 1385 | .pbs-5-lg{padding-block-start:var(--space--5);} 1386 | .pbe-5-lg{padding-block-end:var(--space--5);} 1387 | .pi-5-lg{padding-inline:var(--space--5);} 1388 | .pis-5-lg{padding-inline-start:var(--space--5);} 1389 | .pie-5-lg{padding-inline-end:var(--space--5);} 1390 | .p-4-lg{padding:var(--space--4);} 1391 | .pb-4-lg{padding-block:var(--space--4);} 1392 | .pbs-4-lg{padding-block-start:var(--space--4);} 1393 | .pbe-4-lg{padding-block-end:var(--space--4);} 1394 | .pi-4-lg{padding-inline:var(--space--4);} 1395 | .pis-4-lg{padding-inline-start:var(--space--4);} 1396 | .pie-4-lg{padding-inline-end:var(--space--4);} 1397 | .p-3-lg{padding:var(--space--3);} 1398 | .pb-3-lg{padding-block:var(--space--3);} 1399 | .pbs-3-lg{padding-block-start:var(--space--3);} 1400 | .pbe-3-lg{padding-block-end:var(--space--3);} 1401 | .pi-3-lg{padding-inline:var(--space--3);} 1402 | .pis-3-lg{padding-inline-start:var(--space--3);} 1403 | .pie-3-lg{padding-inline-end:var(--space--3);} 1404 | .p-2-lg{padding:var(--space--2);} 1405 | .pb-2-lg{padding-block:var(--space--2);} 1406 | .pbs-2-lg{padding-block-start:var(--space--2);} 1407 | .pbe-2-lg{padding-block-end:var(--space--2);} 1408 | .pi-2-lg{padding-inline:var(--space--2);} 1409 | .pis-2-lg{padding-inline-start:var(--space--2);} 1410 | .pie-2-lg{padding-inline-end:var(--space--2);} 1411 | .p-1-lg{padding:var(--space--1);} 1412 | .pb-1-lg{padding-block:var(--space--1);} 1413 | .pbs-1-lg{padding-block-start:var(--space--1);} 1414 | .pbe-1-lg{padding-block-end:var(--space--1);} 1415 | .pi-1-lg{padding-inline:var(--space--1);} 1416 | .pis-1-lg{padding-inline-start:var(--space--1);} 1417 | .pie-1-lg{padding-inline-end:var(--space--1);} 1418 | .p0-lg{padding:var(--space-0);} 1419 | .pb0-lg{padding-block:var(--space-0);} 1420 | .pbs0-lg{padding-block-start:var(--space-0);} 1421 | .pbe0-lg{padding-block-end:var(--space-0);} 1422 | .pi0-lg{padding-inline:var(--space-0);} 1423 | .pis0-lg{padding-inline-start:var(--space-0);} 1424 | .pie0-lg{padding-inline-end:var(--space-0);} 1425 | .p1-lg{padding:var(--space-1);} 1426 | .pb1-lg{padding-block:var(--space-1);} 1427 | .pbs1-lg{padding-block-start:var(--space-1);} 1428 | .pbe1-lg{padding-block-end:var(--space-1);} 1429 | .pi1-lg{padding-inline:var(--space-1);} 1430 | .pis1-lg{padding-inline-start:var(--space-1);} 1431 | .pie1-lg{padding-inline-end:var(--space-1);} 1432 | .p2-lg{padding:var(--space-2);} 1433 | .pb2-lg{padding-block:var(--space-2);} 1434 | .pbs2-lg{padding-block-start:var(--space-2);} 1435 | .pbe2-lg{padding-block-end:var(--space-2);} 1436 | .pi2-lg{padding-inline:var(--space-2);} 1437 | .pis2-lg{padding-inline-start:var(--space-2);} 1438 | .pie2-lg{padding-inline-end:var(--space-2);} 1439 | .p3-lg{padding:var(--space-3);} 1440 | .pb3-lg{padding-block:var(--space-3);} 1441 | .pbs3-lg{padding-block-start:var(--space-3);} 1442 | .pbe3-lg{padding-block-end:var(--space-3);} 1443 | .pi3-lg{padding-inline:var(--space-3);} 1444 | .pis3-lg{padding-inline-start:var(--space-3);} 1445 | .pie3-lg{padding-inline-end:var(--space-3);} 1446 | .p4-lg{padding:var(--space-4);} 1447 | .pb4-lg{padding-block:var(--space-4);} 1448 | .pbs4-lg{padding-block-start:var(--space-4);} 1449 | .pbe4-lg{padding-block-end:var(--space-4);} 1450 | .pi4-lg{padding-inline:var(--space-4);} 1451 | .pis4-lg{padding-inline-start:var(--space-4);} 1452 | .pie4-lg{padding-inline-end:var(--space-4);} 1453 | .p5-lg{padding:var(--space-5);} 1454 | .pb5-lg{padding-block:var(--space-5);} 1455 | .pbs5-lg{padding-block-start:var(--space-5);} 1456 | .pbe5-lg{padding-block-end:var(--space-5);} 1457 | .pi5-lg{padding-inline:var(--space-5);} 1458 | .pis5-lg{padding-inline-start:var(--space-5);} 1459 | .pie5-lg{padding-inline-end:var(--space-5);} 1460 | 1461 | 1462 | /*** Overflow ***/ 1463 | .overflow-auto-lg{overflow:auto;} 1464 | .truncate-lg, 1465 | .overflow-hidden-lg{overflow:hidden;} 1466 | .overflow-visible-lg{overflow:visible;} 1467 | .overflow-scroll-lg{overflow:scroll;} 1468 | .overflow-x-auto-lg{overflow-x:auto;} 1469 | .overflow-y-auto-lg{overflow-y:auto;} 1470 | .overflow-x-scroll-lg{overflow-x:scroll;} 1471 | .overflow-x-hidden-lg{overflow-x:hidden;} 1472 | .overflow-y-scroll-lg{overflow-y:scroll;} 1473 | .overflow-y-hidden-lg{overflow-y:hidden;} 1474 | .scrolling-touch-lg{-webkit-overflow-scrolling:touch;} 1475 | .scrolling-auto-lg{-webkit-overflow-scrolling:auto;} 1476 | 1477 | 1478 | /*** Visibility ***/ 1479 | .invisible-lg{visibility:hidden;} 1480 | .visible-lg{visibility:visible;} 1481 | 1482 | 1483 | /*** Object Fit ***/ 1484 | .object-contain-lg{object-fit:contain;} 1485 | .object-cover-lg{object-fit:cover;} 1486 | .object-fill-lg{object-fit:fill;} 1487 | .object-none-lg{object-fit:none;} 1488 | .object-scale-down-lg{object-fit:scale-down;} 1489 | 1490 | 1491 | /*** Object Position ***/ 1492 | .object-b-lg{object-position:bottom;} 1493 | .object-c-lg{object-position:center;} 1494 | .object-t-lg{object-position:top;} 1495 | .object-r-lg{object-position:right;} 1496 | .object-rt-lg{object-position:right top;} 1497 | .object-rb-lg{object-position:right bottom;} 1498 | .object-l-lg{object-position:left;} 1499 | .object-lt-lg{object-position:left top;} 1500 | .object-lb-lg{object-position:left bottom;} 1501 | 1502 | 1503 | /*** Outline ***/ 1504 | .outline-none-lg{outline:0;} 1505 | 1506 | 1507 | /*** Opacity ***/ 1508 | .opacity-0-lg{opacity:0;} 1509 | .opacity-25-lg{opacity:0.25;} 1510 | .opacity-50-lg{opacity:0.5;} 1511 | .opacity-75-lg{opacity:0.75;} 1512 | .opacity-100-lg{opacity:1.0;} 1513 | 1514 | 1515 | /*** Cursor ***/ 1516 | .cursor-auto-lg{cursor:auto;} 1517 | .cursor-default-lg{cursor:default;} 1518 | .cursor-pointer-lg{cursor:pointer;} 1519 | .cursor-wait-lg{cursor:wait;} 1520 | .cursor-text-lg{cursor:text;} 1521 | .cursor-move-lg{cursor:move;} 1522 | .cursor-not-allowed-lg{cursor:not-allowed;} 1523 | .cursor-grab-lg{cursor:grab;} 1524 | .cursor-grabbing-lg{cursor:grabbing;} 1525 | 1526 | 1527 | /*** User Select ***/ 1528 | .select-none-lg{user-select:none;} 1529 | .select-text-lg{user-select:text;} 1530 | .select-all-lg{user-select:all;} 1531 | .select-auto-lg{user-select:auto;} 1532 | 1533 | 1534 | /*** Debug ***/ 1535 | .debug * { outline: 2px dotted var(--debug-color, rebeccapurple) } 1536 | .debug *:hover { border:2px solid var(--debug-color, rebeccapurple) } 1537 | 1538 | 1539 | } 1540 | --------------------------------------------------------------------------------