shelving 1.261.0 → 1.262.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/ui/README.md +1 -1
- package/ui/block/Definitions.d.ts +1 -2
- package/ui/block/Definitions.tsx +1 -2
- package/ui/form/Button.d.ts +1 -2
- package/ui/form/Button.js +1 -2
- package/ui/form/Button.tsx +1 -3
- package/ui/inline/Code.d.ts +1 -2
- package/ui/inline/Code.tsx +1 -2
- package/ui/inline/Deleted.d.ts +1 -2
- package/ui/inline/Deleted.js +1 -2
- package/ui/inline/Deleted.tsx +1 -3
- package/ui/inline/Inserted.d.ts +1 -2
- package/ui/inline/Inserted.js +1 -2
- package/ui/inline/Inserted.tsx +1 -3
- package/ui/inline/Link.d.ts +1 -2
- package/ui/inline/Link.js +1 -2
- package/ui/inline/Link.tsx +1 -3
- package/ui/inline/Span.d.ts +19 -0
- package/ui/inline/Span.js +13 -0
- package/ui/inline/Span.md +33 -0
- package/ui/inline/Span.tsx +22 -0
- package/ui/inline/index.d.ts +1 -0
- package/ui/inline/index.js +1 -0
- package/ui/inline/index.ts +1 -0
- package/ui/misc/Icon.d.ts +1 -1
- package/ui/misc/Icon.js +1 -2
- package/ui/misc/Icon.tsx +2 -3
- package/ui/misc/Tag.d.ts +1 -2
- package/ui/misc/Tag.js +1 -2
- package/ui/misc/Tag.tsx +1 -3
- package/ui/style/Block.d.ts +1 -2
- package/ui/style/Block.js +1 -2
- package/ui/style/Block.tsx +1 -3
- package/ui/style/Typography.d.ts +9 -5
- package/ui/style/Typography.js +6 -4
- package/ui/style/Typography.tsx +21 -14
- package/ui/style/getTypographyClass.md +1 -1
package/package.json
CHANGED
package/ui/README.md
CHANGED
|
@@ -25,7 +25,7 @@ The styling system lives in `style/` and has four moving parts: design tokens, t
|
|
|
25
25
|
|
|
26
26
|
**Cascade layers.** Styles are ordered by `@layer`, lowest to highest priority: `defaults` (`:root` tokens, the tint ladder, body baseline) → `components` (the bulk of the CSS: `.card`, `.button`, …) → `variants` (cross-cutting opt-in modifiers, which always beat components) → `overrides` (top-priority structural fixes like `:first-child` / `:last-child` margin collapses). Unlayered rules beat all layered rules, so a theme should set tokens at `:root` or wrap its rules in `@layer`.
|
|
27
27
|
|
|
28
|
-
**Styling props.** The cross-cutting visual options are props, each backed by a helper in `style/` that maps the prop to a class. Colour and status move the tint anchor — `getColorClass()` and `getStatusClass()`; font size, weight, family, and case, plus text alignment, tint, and wrapping, all come from `getTypographyClass()
|
|
28
|
+
**Styling props.** The cross-cutting visual options are props, each backed by a helper in `style/` that maps the prop to a class. Colour and status move the tint anchor — `getColorClass()` and `getStatusClass()`; font size, weight, family, and case, plus text alignment, tint, and wrapping, all come from `getTypographyClass()`, which extends `ColorVariants` and composes `getColorClass()` so every typographic element also accepts `color` (use `getColorClass()` directly only for colour-without-typography, e.g. `<Icon>`); spacing, block-padding, inline-padding ("indent"), and gap from `getSpaceClass()`, `getPaddingClass()`, `getIndentClass()`, and `getGapClass()`; width constraints from `getWidthClass()`; flex layout from `getFlexClass()`; and opt-in scrolling from `getScrollClass()`. Each helper's page lists its exact prop values and what they set. A component opts into the props it wants by extending the matching `*Props` interfaces and composing the `getXxxClass(props)` calls.
|
|
29
29
|
|
|
30
30
|
Each painting component also exposes its own theme hooks — a single tint hook (`--card-tint`) to recolour the whole component, plus per-property hooks (`--card-background`, `--card-radius`, …) for surgical overrides. Those are documented in each component's own **Styling** section (see `<Card>` for the precedent).
|
|
31
31
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
|
-
import type { ColorVariants } from "../style/Color.js";
|
|
3
2
|
import type { GapVariants } from "../style/Gap.js";
|
|
4
3
|
import type { SpaceVariants } from "../style/Space.js";
|
|
5
4
|
import type { TypographyVariants } from "../style/Typography.js";
|
|
@@ -9,7 +8,7 @@ import type { OptionalChildProps } from "../util/props.js";
|
|
|
9
8
|
*
|
|
10
9
|
* @see https://shelving.cc/ui/DefinitionsProps
|
|
11
10
|
*/
|
|
12
|
-
export interface DefinitionsProps extends
|
|
11
|
+
export interface DefinitionsProps extends GapVariants, SpaceVariants, TypographyVariants, OptionalChildProps {
|
|
13
12
|
}
|
|
14
13
|
/**
|
|
15
14
|
* Description list — a sequence of term/value pairs rendered as a `<dl>`.
|
package/ui/block/Definitions.tsx
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
2
|
import { getBlockClass } from "../style/Block.js";
|
|
3
|
-
import type { ColorVariants } from "../style/Color.js";
|
|
4
3
|
import type { GapVariants } from "../style/Gap.js";
|
|
5
4
|
import type { SpaceVariants } from "../style/Space.js";
|
|
6
5
|
import type { TypographyVariants } from "../style/Typography.js";
|
|
@@ -15,7 +14,7 @@ const DEFINITIONS_CLASS = getModuleClass(DEFINITIONS_CSS, "definitions");
|
|
|
15
14
|
*
|
|
16
15
|
* @see https://shelving.cc/ui/DefinitionsProps
|
|
17
16
|
*/
|
|
18
|
-
export interface DefinitionsProps extends
|
|
17
|
+
export interface DefinitionsProps extends GapVariants, SpaceVariants, TypographyVariants, OptionalChildProps {}
|
|
19
18
|
|
|
20
19
|
/**
|
|
21
20
|
* Description list — a sequence of term/value pairs rendered as a `<dl>`.
|
package/ui/form/Button.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
|
-
import { type ColorVariants } from "../style/Color.js";
|
|
3
2
|
import { type FlexVariants } from "../style/Flex.js";
|
|
4
3
|
import { type StatusVariants } from "../style/Status.js";
|
|
5
4
|
import { type TypographyVariants } from "../style/Typography.js";
|
|
@@ -9,7 +8,7 @@ import { type ClickableProps } from "./Clickable.js";
|
|
|
9
8
|
*
|
|
10
9
|
* @see https://shelving.cc/ui/ButtonVariants
|
|
11
10
|
*/
|
|
12
|
-
export interface ButtonVariants extends FlexVariants,
|
|
11
|
+
export interface ButtonVariants extends FlexVariants, StatusVariants, TypographyVariants {
|
|
13
12
|
/** This is the default button in a form and should be displayed stronger. */
|
|
14
13
|
strong?: boolean | undefined;
|
|
15
14
|
/** Add plain styling (background only appears on hover or focus). */
|
package/ui/form/Button.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { getColorClass } from "../style/Color.js";
|
|
3
2
|
import { getFlexClass } from "../style/Flex.js";
|
|
4
3
|
import { getStatusClass } from "../style/Status.js";
|
|
5
4
|
import { getTypographyClass } from "../style/Typography.js";
|
|
@@ -14,7 +13,7 @@ import { Clickable } from "./Clickable.js";
|
|
|
14
13
|
* @see https://shelving.cc/ui/getButtonClass
|
|
15
14
|
*/
|
|
16
15
|
export function getButtonClass(variants) {
|
|
17
|
-
return getClass(getModuleClass(BUTTON_CSS, "button", variants), getFlexClass(variants), getStatusClass(variants),
|
|
16
|
+
return getClass(getModuleClass(BUTTON_CSS, "button", variants), getFlexClass(variants), getStatusClass(variants), getTypographyClass(variants));
|
|
18
17
|
}
|
|
19
18
|
/**
|
|
20
19
|
* Render either a `<button>` or an `<a href="">` styled as a button, based on whether an `onClick` or `href` prop is provided.
|
package/ui/form/Button.tsx
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
|
-
import { type ColorVariants, getColorClass } from "../style/Color.js";
|
|
3
2
|
import { type FlexVariants, getFlexClass } from "../style/Flex.js";
|
|
4
3
|
import { getStatusClass, type StatusVariants } from "../style/Status.js";
|
|
5
4
|
import { getTypographyClass, type TypographyVariants } from "../style/Typography.js";
|
|
@@ -12,7 +11,7 @@ import { Clickable, type ClickableProps } from "./Clickable.js";
|
|
|
12
11
|
*
|
|
13
12
|
* @see https://shelving.cc/ui/ButtonVariants
|
|
14
13
|
*/
|
|
15
|
-
export interface ButtonVariants extends FlexVariants,
|
|
14
|
+
export interface ButtonVariants extends FlexVariants, StatusVariants, TypographyVariants {
|
|
16
15
|
/** This is the default button in a form and should be displayed stronger. */
|
|
17
16
|
strong?: boolean | undefined;
|
|
18
17
|
/** Add plain styling (background only appears on hover or focus). */
|
|
@@ -37,7 +36,6 @@ export function getButtonClass(variants: ButtonVariants): string {
|
|
|
37
36
|
getModuleClass(BUTTON_CSS, "button", variants),
|
|
38
37
|
getFlexClass(variants),
|
|
39
38
|
getStatusClass(variants),
|
|
40
|
-
getColorClass(variants),
|
|
41
39
|
getTypographyClass(variants),
|
|
42
40
|
);
|
|
43
41
|
}
|
package/ui/inline/Code.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
|
-
import type { ColorVariants } from "../style/Color.js";
|
|
3
2
|
import { type TypographyVariants } from "../style/Typography.js";
|
|
4
3
|
import type { OptionalChildProps } from "../util/index.js";
|
|
5
4
|
/**
|
|
@@ -7,7 +6,7 @@ import type { OptionalChildProps } from "../util/index.js";
|
|
|
7
6
|
*
|
|
8
7
|
* @see https://shelving.cc/ui/CodeProps
|
|
9
8
|
*/
|
|
10
|
-
export interface CodeProps extends
|
|
9
|
+
export interface CodeProps extends TypographyVariants, OptionalChildProps {
|
|
11
10
|
plain?: boolean | undefined;
|
|
12
11
|
}
|
|
13
12
|
/**
|
package/ui/inline/Code.tsx
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
|
-
import type { ColorVariants } from "../style/Color.js";
|
|
3
2
|
import { getTypographyClass, type TypographyVariants } from "../style/Typography.js";
|
|
4
3
|
import { getClass, getModuleClass } from "../util/css.js";
|
|
5
4
|
import type { OptionalChildProps } from "../util/index.js";
|
|
@@ -14,7 +13,7 @@ const CODE_PLAIN_CLASS = getModuleClass(CODE_CSS, "plain");
|
|
|
14
13
|
*
|
|
15
14
|
* @see https://shelving.cc/ui/CodeProps
|
|
16
15
|
*/
|
|
17
|
-
export interface CodeProps extends
|
|
16
|
+
export interface CodeProps extends TypographyVariants, OptionalChildProps {
|
|
18
17
|
plain?: boolean | undefined;
|
|
19
18
|
}
|
|
20
19
|
|
package/ui/inline/Deleted.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
|
-
import { type ColorVariants } from "../style/Color.js";
|
|
3
2
|
import { type TypographyVariants } from "../style/Typography.js";
|
|
4
3
|
import type { OptionalChildProps } from "../util/props.js";
|
|
5
4
|
/**
|
|
@@ -7,7 +6,7 @@ import type { OptionalChildProps } from "../util/props.js";
|
|
|
7
6
|
*
|
|
8
7
|
* @see https://shelving.cc/ui/DeletedProps
|
|
9
8
|
*/
|
|
10
|
-
export interface DeletedProps extends OptionalChildProps,
|
|
9
|
+
export interface DeletedProps extends OptionalChildProps, TypographyVariants {
|
|
11
10
|
}
|
|
12
11
|
/**
|
|
13
12
|
* Deleted text — renders a `<del>` element to mark content removed from a document.
|
package/ui/inline/Deleted.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { getColorClass } from "../style/Color.js";
|
|
3
2
|
import { getTypographyClass } from "../style/Typography.js";
|
|
4
3
|
import { getClass, getModuleClass } from "../util/css.js";
|
|
5
4
|
import DELETED_CSS from "./Deleted.module.css";
|
|
@@ -13,5 +12,5 @@ const DELETED_CLASS = getModuleClass(DELETED_CSS, "deleted");
|
|
|
13
12
|
*/
|
|
14
13
|
export function Deleted({ children, ...props }) {
|
|
15
14
|
return (_jsx("del", { className: getClass(DELETED_CLASS, //
|
|
16
|
-
|
|
15
|
+
getTypographyClass(props)), children: children }));
|
|
17
16
|
}
|
package/ui/inline/Deleted.tsx
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
|
-
import { type ColorVariants, getColorClass } from "../style/Color.js";
|
|
3
2
|
import { getTypographyClass, type TypographyVariants } from "../style/Typography.js";
|
|
4
3
|
import { getClass, getModuleClass } from "../util/css.js";
|
|
5
4
|
import type { OptionalChildProps } from "../util/props.js";
|
|
@@ -12,7 +11,7 @@ const DELETED_CLASS = getModuleClass(DELETED_CSS, "deleted");
|
|
|
12
11
|
*
|
|
13
12
|
* @see https://shelving.cc/ui/DeletedProps
|
|
14
13
|
*/
|
|
15
|
-
export interface DeletedProps extends OptionalChildProps,
|
|
14
|
+
export interface DeletedProps extends OptionalChildProps, TypographyVariants {}
|
|
16
15
|
|
|
17
16
|
/**
|
|
18
17
|
* Deleted text — renders a `<del>` element to mark content removed from a document.
|
|
@@ -26,7 +25,6 @@ export function Deleted({ children, ...props }: DeletedProps): ReactElement {
|
|
|
26
25
|
<del
|
|
27
26
|
className={getClass(
|
|
28
27
|
DELETED_CLASS, //
|
|
29
|
-
getColorClass(props),
|
|
30
28
|
getTypographyClass(props),
|
|
31
29
|
)}
|
|
32
30
|
>
|
package/ui/inline/Inserted.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
|
-
import { type ColorVariants } from "../style/Color.js";
|
|
3
2
|
import { type TypographyVariants } from "../style/Typography.js";
|
|
4
3
|
import type { OptionalChildProps } from "../util/props.js";
|
|
5
4
|
/**
|
|
@@ -7,7 +6,7 @@ import type { OptionalChildProps } from "../util/props.js";
|
|
|
7
6
|
*
|
|
8
7
|
* @see https://shelving.cc/ui/InsertedProps
|
|
9
8
|
*/
|
|
10
|
-
export interface InsertedProps extends OptionalChildProps,
|
|
9
|
+
export interface InsertedProps extends OptionalChildProps, TypographyVariants {
|
|
11
10
|
}
|
|
12
11
|
/**
|
|
13
12
|
* Inserted text — renders an `<ins>` element to mark content added to a document.
|
package/ui/inline/Inserted.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { getColorClass } from "../style/Color.js";
|
|
3
2
|
import { getTypographyClass } from "../style/Typography.js";
|
|
4
3
|
import { getClass, getModuleClass } from "../util/css.js";
|
|
5
4
|
import INSERTED_CSS from "./Inserted.module.css";
|
|
@@ -13,5 +12,5 @@ const INSERTED_CLASS = getModuleClass(INSERTED_CSS, "inserted");
|
|
|
13
12
|
*/
|
|
14
13
|
export function Inserted({ children, ...props }) {
|
|
15
14
|
return (_jsx("ins", { className: getClass(INSERTED_CLASS, //
|
|
16
|
-
|
|
15
|
+
getTypographyClass(props)), children: children }));
|
|
17
16
|
}
|
package/ui/inline/Inserted.tsx
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
|
-
import { type ColorVariants, getColorClass } from "../style/Color.js";
|
|
3
2
|
import { getTypographyClass, type TypographyVariants } from "../style/Typography.js";
|
|
4
3
|
import { getClass, getModuleClass } from "../util/css.js";
|
|
5
4
|
import type { OptionalChildProps } from "../util/props.js";
|
|
@@ -12,7 +11,7 @@ const INSERTED_CLASS = getModuleClass(INSERTED_CSS, "inserted");
|
|
|
12
11
|
*
|
|
13
12
|
* @see https://shelving.cc/ui/InsertedProps
|
|
14
13
|
*/
|
|
15
|
-
export interface InsertedProps extends OptionalChildProps,
|
|
14
|
+
export interface InsertedProps extends OptionalChildProps, TypographyVariants {}
|
|
16
15
|
|
|
17
16
|
/**
|
|
18
17
|
* Inserted text — renders an `<ins>` element to mark content added to a document.
|
|
@@ -26,7 +25,6 @@ export function Inserted({ children, ...props }: InsertedProps): ReactElement {
|
|
|
26
25
|
<ins
|
|
27
26
|
className={getClass(
|
|
28
27
|
INSERTED_CLASS, //
|
|
29
|
-
getColorClass(props),
|
|
30
28
|
getTypographyClass(props),
|
|
31
29
|
)}
|
|
32
30
|
>
|
package/ui/inline/Link.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
2
|
import { type ClickableProps } from "../form/Clickable.js";
|
|
3
|
-
import { type ColorVariants } from "../style/Color.js";
|
|
4
3
|
import { type TypographyVariants } from "../style/Typography.js";
|
|
5
4
|
/**
|
|
6
5
|
* Props for `Link` — `ClickableProps` (`href` for navigation or `onClick` for actions) plus colour and typography variants.
|
|
7
6
|
*
|
|
8
7
|
* @see https://shelving.cc/ui/LinkProps
|
|
9
8
|
*/
|
|
10
|
-
export interface LinkProps extends ClickableProps,
|
|
9
|
+
export interface LinkProps extends ClickableProps, TypographyVariants {
|
|
11
10
|
}
|
|
12
11
|
/**
|
|
13
12
|
* Inline link — delegates to `<Clickable>`, rendering an `<a>` (when `href` is set) or `<button>` (when `onClick` is set).
|
package/ui/inline/Link.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Clickable } from "../form/Clickable.js";
|
|
3
|
-
import { getColorClass } from "../style/Color.js";
|
|
4
3
|
import { getTypographyClass } from "../style/Typography.js";
|
|
5
4
|
import { getClass, getModuleClass } from "../util/css.js";
|
|
6
5
|
import LINK_CSS from "./Link.module.css";
|
|
@@ -13,5 +12,5 @@ const LINK_CLASS = getModuleClass(LINK_CSS, "link");
|
|
|
13
12
|
*/
|
|
14
13
|
export function Link(props) {
|
|
15
14
|
return (_jsx(Clickable, { ...props, className: getClass(LINK_CLASS, //
|
|
16
|
-
|
|
15
|
+
getTypographyClass(props)) }));
|
|
17
16
|
}
|
package/ui/inline/Link.tsx
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
2
|
import { Clickable, type ClickableProps } from "../form/Clickable.js";
|
|
3
|
-
import { type ColorVariants, getColorClass } from "../style/Color.js";
|
|
4
3
|
import { getTypographyClass, type TypographyVariants } from "../style/Typography.js";
|
|
5
4
|
import { getClass, getModuleClass } from "../util/css.js";
|
|
6
5
|
import LINK_CSS from "./Link.module.css";
|
|
@@ -12,7 +11,7 @@ const LINK_CLASS = getModuleClass(LINK_CSS, "link");
|
|
|
12
11
|
*
|
|
13
12
|
* @see https://shelving.cc/ui/LinkProps
|
|
14
13
|
*/
|
|
15
|
-
export interface LinkProps extends ClickableProps,
|
|
14
|
+
export interface LinkProps extends ClickableProps, TypographyVariants {}
|
|
16
15
|
|
|
17
16
|
/**
|
|
18
17
|
* Inline link — delegates to `<Clickable>`, rendering an `<a>` (when `href` is set) or `<button>` (when `onClick` is set).
|
|
@@ -26,7 +25,6 @@ export function Link(props: LinkProps): ReactElement {
|
|
|
26
25
|
{...props}
|
|
27
26
|
className={getClass(
|
|
28
27
|
LINK_CLASS, //
|
|
29
|
-
getColorClass(props),
|
|
30
28
|
getTypographyClass(props),
|
|
31
29
|
)}
|
|
32
30
|
/>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import { type TypographyVariants } from "../style/Typography.js";
|
|
3
|
+
import type { OptionalChildProps } from "../util/props.js";
|
|
4
|
+
/**
|
|
5
|
+
* Props for `Span` — colour and typography variants, plus optional `children`.
|
|
6
|
+
*
|
|
7
|
+
* @see https://shelving.cc/ui/SpanProps
|
|
8
|
+
*/
|
|
9
|
+
export interface SpanProps extends OptionalChildProps, TypographyVariants {
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Styled inline text — renders a `<span>` carrying only the colour and typography variant classes, with no styling of its own.
|
|
13
|
+
* - Reach for it to apply variants (`size`, `weight`, `tint`, `color`, …) to a run of text that has no semantic meaning of its own.
|
|
14
|
+
*
|
|
15
|
+
* @kind component
|
|
16
|
+
* @example <Span weight="strong" tint="30">label</Span>
|
|
17
|
+
* @see https://shelving.cc/ui/Span
|
|
18
|
+
*/
|
|
19
|
+
export declare function Span({ children, ...props }: SpanProps): ReactElement;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { getTypographyClass } from "../style/Typography.js";
|
|
3
|
+
/**
|
|
4
|
+
* Styled inline text — renders a `<span>` carrying only the colour and typography variant classes, with no styling of its own.
|
|
5
|
+
* - Reach for it to apply variants (`size`, `weight`, `tint`, `color`, …) to a run of text that has no semantic meaning of its own.
|
|
6
|
+
*
|
|
7
|
+
* @kind component
|
|
8
|
+
* @example <Span weight="strong" tint="30">label</Span>
|
|
9
|
+
* @see https://shelving.cc/ui/Span
|
|
10
|
+
*/
|
|
11
|
+
export function Span({ children, ...props }) {
|
|
12
|
+
return _jsx("span", { className: getTypographyClass(props), children: children });
|
|
13
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Span
|
|
2
|
+
|
|
3
|
+
Styled inline text — renders a `<span>` element that carries only the colour and typography variant classes you pass it, with no styling of its own. Reach for it when you need to apply variants to a run of text that has no semantic meaning, the inline counterpart to a styled `<div>`.
|
|
4
|
+
|
|
5
|
+
**Things to know:**
|
|
6
|
+
|
|
7
|
+
- It is purely presentational: use `<Strong>` for importance, `<Emphasis>` for stress emphasis, `<Mark>` for highlighting, and `<Small>` for fine print — `Span` is for everything that is _only_ a visual tweak.
|
|
8
|
+
- With no props it is an inert wrapper — it renders a bare `<span>` and changes nothing.
|
|
9
|
+
- It accepts the full [typography variants](/ui/TypographyVariants) (`size`, `weight`, `font`, `case`, `tint`, `left` / `center` / `right`, `wrap` / `nowrap`) and the [colour variant](/ui/ColorVariants) (`color`).
|
|
10
|
+
- `color` sets the [tint ladder](/ui/TINT_CLASS) for the span and its descendants; pair it with `tint` to actually paint the span's own text from a ladder step (e.g. `color="purple" tint="40"`).
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
### Applying typography variants
|
|
15
|
+
|
|
16
|
+
```tsx
|
|
17
|
+
import { Span } from "shelving/ui";
|
|
18
|
+
|
|
19
|
+
<p>Total <Span weight="strong">$35.00</Span> due today.</p>
|
|
20
|
+
<p><Span case="upper" size="xsmall">New</Span></p>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Colouring a run of text
|
|
24
|
+
|
|
25
|
+
```tsx
|
|
26
|
+
import { Span } from "shelving/ui";
|
|
27
|
+
|
|
28
|
+
<Span color="purple" tint="40">on-brand accent</Span>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Styling
|
|
32
|
+
|
|
33
|
+
`Span` declares no CSS of its own — there are no theming hooks. All appearance comes from the colour and typography variant props, which apply shared variant classes from the design system.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import { getTypographyClass, type TypographyVariants } from "../style/Typography.js";
|
|
3
|
+
import type { OptionalChildProps } from "../util/props.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Props for `Span` — colour and typography variants, plus optional `children`.
|
|
7
|
+
*
|
|
8
|
+
* @see https://shelving.cc/ui/SpanProps
|
|
9
|
+
*/
|
|
10
|
+
export interface SpanProps extends OptionalChildProps, TypographyVariants {}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Styled inline text — renders a `<span>` carrying only the colour and typography variant classes, with no styling of its own.
|
|
14
|
+
* - Reach for it to apply variants (`size`, `weight`, `tint`, `color`, …) to a run of text that has no semantic meaning of its own.
|
|
15
|
+
*
|
|
16
|
+
* @kind component
|
|
17
|
+
* @example <Span weight="strong" tint="30">label</Span>
|
|
18
|
+
* @see https://shelving.cc/ui/Span
|
|
19
|
+
*/
|
|
20
|
+
export function Span({ children, ...props }: SpanProps): ReactElement {
|
|
21
|
+
return <span className={getTypographyClass(props)}>{children}</span>;
|
|
22
|
+
}
|
package/ui/inline/index.d.ts
CHANGED
package/ui/inline/index.js
CHANGED
package/ui/inline/index.ts
CHANGED
package/ui/misc/Icon.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentType, ReactElement } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import type { ColorVariants } from "../style/Color.js";
|
|
3
3
|
import type { SpaceVariants } from "../style/Space.js";
|
|
4
4
|
import { type StatusVariants } from "../style/Status.js";
|
|
5
5
|
import type { TintVariant } from "../style/Tint.js";
|
package/ui/misc/Icon.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { CheckCircleIcon, ExclamationTriangleIcon, InformationCircleIcon, XCircleIcon } from "@heroicons/react/24/solid";
|
|
3
|
-
import { getColorClass } from "../style/Color.js";
|
|
4
3
|
import { getStatusClass } from "../style/Status.js";
|
|
5
4
|
import { getTypographyClass } from "../style/Typography.js";
|
|
6
5
|
import { getClass, getModuleClass } from "../util/css.js";
|
|
@@ -24,5 +23,5 @@ const STATUS_ICONS = {
|
|
|
24
23
|
export function Icon(props) {
|
|
25
24
|
const { status = "info", icon: Element = STATUS_ICONS[status] ?? InformationCircleIcon } = props;
|
|
26
25
|
return (_jsx(Element, { className: getClass(getModuleClass(ICON_CSS, "icon"), //
|
|
27
|
-
|
|
26
|
+
getStatusClass(props), getTypographyClass(props)) }));
|
|
28
27
|
}
|
package/ui/misc/Icon.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CheckCircleIcon, ExclamationTriangleIcon, InformationCircleIcon, XCircleIcon } from "@heroicons/react/24/solid";
|
|
2
2
|
import type { ComponentType, ReactElement } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import type { ColorVariants } from "../style/Color.js";
|
|
4
4
|
import type { SpaceVariants } from "../style/Space.js";
|
|
5
5
|
import { getStatusClass, type Status, type StatusVariants } from "../style/Status.js";
|
|
6
6
|
import type { TintVariant } from "../style/Tint.js";
|
|
@@ -55,9 +55,8 @@ export function Icon(props: IconProps): ReactElement {
|
|
|
55
55
|
<Element
|
|
56
56
|
className={getClass(
|
|
57
57
|
getModuleClass(ICON_CSS, "icon"), //
|
|
58
|
-
getColorClass(props),
|
|
59
58
|
getStatusClass(props),
|
|
60
|
-
getTypographyClass(props), // Used for size and tint.
|
|
59
|
+
getTypographyClass(props), // Used for colour, size, and tint.
|
|
61
60
|
)}
|
|
62
61
|
/>
|
|
63
62
|
);
|
package/ui/misc/Tag.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
2
|
import { type ClickableProps } from "../form/Clickable.js";
|
|
3
|
-
import { type ColorVariants } from "../style/Color.js";
|
|
4
3
|
import { type StatusVariants } from "../style/Status.js";
|
|
5
4
|
import { type TypographyVariants } from "../style/Typography.js";
|
|
6
5
|
/**
|
|
@@ -8,7 +7,7 @@ import { type TypographyVariants } from "../style/Typography.js";
|
|
|
8
7
|
*
|
|
9
8
|
* @see https://shelving.cc/ui/TagVariants
|
|
10
9
|
*/
|
|
11
|
-
export interface TagVariants extends StatusVariants,
|
|
10
|
+
export interface TagVariants extends StatusVariants, TypographyVariants {
|
|
12
11
|
}
|
|
13
12
|
/**
|
|
14
13
|
* Build the combined `className` string for a `<Tag>` from its styling variants.
|
package/ui/misc/Tag.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Clickable } from "../form/Clickable.js";
|
|
3
|
-
import { getColorClass } from "../style/Color.js";
|
|
4
3
|
import { getStatusClass } from "../style/Status.js";
|
|
5
4
|
import { getTypographyClass } from "../style/Typography.js";
|
|
6
5
|
import { getClass, getModuleClass } from "../util/css.js";
|
|
@@ -16,7 +15,7 @@ const TAG_CLASS = getModuleClass(TAG_CSS, "tag");
|
|
|
16
15
|
*/
|
|
17
16
|
export function getTagClass(variants) {
|
|
18
17
|
return getClass(TAG_CLASS, //
|
|
19
|
-
getStatusClass(variants),
|
|
18
|
+
getStatusClass(variants), getTypographyClass(variants));
|
|
20
19
|
}
|
|
21
20
|
/**
|
|
22
21
|
* Small inline label used to annotate other content.
|
package/ui/misc/Tag.tsx
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
2
|
import { Clickable, type ClickableProps } from "../form/Clickable.js";
|
|
3
|
-
import { type ColorVariants, getColorClass } from "../style/Color.js";
|
|
4
3
|
import { getStatusClass, type StatusVariants } from "../style/Status.js";
|
|
5
4
|
import { getTypographyClass, type TypographyVariants } from "../style/Typography.js";
|
|
6
5
|
import { getClass, getModuleClass } from "../util/css.js";
|
|
@@ -13,7 +12,7 @@ const TAG_CLASS = getModuleClass(TAG_CSS, "tag");
|
|
|
13
12
|
*
|
|
14
13
|
* @see https://shelving.cc/ui/TagVariants
|
|
15
14
|
*/
|
|
16
|
-
export interface TagVariants extends StatusVariants,
|
|
15
|
+
export interface TagVariants extends StatusVariants, TypographyVariants {}
|
|
17
16
|
|
|
18
17
|
/**
|
|
19
18
|
* Build the combined `className` string for a `<Tag>` from its styling variants.
|
|
@@ -27,7 +26,6 @@ export function getTagClass(variants: TagVariants) {
|
|
|
27
26
|
return getClass(
|
|
28
27
|
TAG_CLASS, //
|
|
29
28
|
getStatusClass(variants),
|
|
30
|
-
getColorClass(variants),
|
|
31
29
|
getTypographyClass(variants),
|
|
32
30
|
);
|
|
33
31
|
}
|
package/ui/style/Block.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type ColorVariants } from "./Color.js";
|
|
2
1
|
import { type IndentVariants } from "./Indent.js";
|
|
3
2
|
import { type PaddingVariants } from "./Padding.js";
|
|
4
3
|
import { type SpaceVariants } from "./Space.js";
|
|
@@ -9,7 +8,7 @@ import { type WidthVariants } from "./Width.js";
|
|
|
9
8
|
*
|
|
10
9
|
* @see https://shelving.cc/ui/BlockVariants
|
|
11
10
|
*/
|
|
12
|
-
export interface BlockVariants extends
|
|
11
|
+
export interface BlockVariants extends IndentVariants, SpaceVariants, PaddingVariants, TypographyVariants, WidthVariants {
|
|
13
12
|
}
|
|
14
13
|
/**
|
|
15
14
|
* Get the combined `className` string for a block from its styling variants.
|
package/ui/style/Block.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { getClass, getModuleClass } from "../util/css.js";
|
|
2
2
|
import BLOCK_CSS from "./Block.module.css";
|
|
3
|
-
import { getColorClass } from "./Color.js";
|
|
4
3
|
import { getIndentClass } from "./Indent.js";
|
|
5
4
|
import { getPaddingClass } from "./Padding.js";
|
|
6
5
|
import { getSpaceClass } from "./Space.js";
|
|
@@ -18,5 +17,5 @@ const BLOCK_CLASS = getModuleClass(BLOCK_CSS, "block");
|
|
|
18
17
|
*/
|
|
19
18
|
export function getBlockClass(variants) {
|
|
20
19
|
return getClass(BLOCK_CLASS, //
|
|
21
|
-
|
|
20
|
+
getIndentClass(variants), getPaddingClass(variants), getSpaceClass(variants), getTypographyClass(variants), getWidthClass(variants));
|
|
22
21
|
}
|
package/ui/style/Block.tsx
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { getClass, getModuleClass } from "../util/css.js";
|
|
2
2
|
import BLOCK_CSS from "./Block.module.css";
|
|
3
|
-
import { type ColorVariants, getColorClass } from "./Color.js";
|
|
4
3
|
import { getIndentClass, type IndentVariants } from "./Indent.js";
|
|
5
4
|
import { getPaddingClass, type PaddingVariants } from "./Padding.js";
|
|
6
5
|
import { getSpaceClass, type SpaceVariants } from "./Space.js";
|
|
@@ -14,7 +13,7 @@ const BLOCK_CLASS = getModuleClass(BLOCK_CSS, "block");
|
|
|
14
13
|
*
|
|
15
14
|
* @see https://shelving.cc/ui/BlockVariants
|
|
16
15
|
*/
|
|
17
|
-
export interface BlockVariants extends
|
|
16
|
+
export interface BlockVariants extends IndentVariants, SpaceVariants, PaddingVariants, TypographyVariants, WidthVariants {}
|
|
18
17
|
|
|
19
18
|
/**
|
|
20
19
|
* Get the combined `className` string for a block from its styling variants.
|
|
@@ -28,7 +27,6 @@ export interface BlockVariants extends ColorVariants, IndentVariants, SpaceVaria
|
|
|
28
27
|
export function getBlockClass(variants: BlockVariants): string {
|
|
29
28
|
return getClass(
|
|
30
29
|
BLOCK_CLASS, //
|
|
31
|
-
getColorClass(variants),
|
|
32
30
|
getIndentClass(variants),
|
|
33
31
|
getPaddingClass(variants),
|
|
34
32
|
getSpaceClass(variants),
|
package/ui/style/Typography.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ColorVariants } from "./Color.js";
|
|
1
2
|
import type { TintVariant } from "./Tint.js";
|
|
2
3
|
/**
|
|
3
4
|
* Allowed values for font size for components that support `TypographyVariants`
|
|
@@ -24,11 +25,13 @@ export type CaseVariant = "title" | "body" | "label" | "code" | "upper" | "lower
|
|
|
24
25
|
*/
|
|
25
26
|
export type FontVariant = "title" | "body" | "label" | "code" | "serif" | "sans" | "monospace";
|
|
26
27
|
/**
|
|
27
|
-
* Typographic variant props — font-family, weight, case, size, tint, alignment, and wrap, applied via `getTypographyClass()`
|
|
28
|
+
* Typographic variant props — colour, font-family, weight, case, size, tint, alignment, and wrap, applied via `getTypographyClass()`
|
|
29
|
+
*
|
|
30
|
+
* - Extends `ColorVariants`, so anything that accepts typography also accepts the `color` variant.
|
|
28
31
|
*
|
|
29
32
|
* @see https://shelving.cc/ui/TypographyVariants
|
|
30
33
|
*/
|
|
31
|
-
export interface TypographyVariants {
|
|
34
|
+
export interface TypographyVariants extends ColorVariants {
|
|
32
35
|
/** Font size of the element. */
|
|
33
36
|
size?: SizeVariant | undefined;
|
|
34
37
|
/** Set CSS text `color:` to one of the shades of the current tint ladder. */
|
|
@@ -53,10 +56,11 @@ export interface TypographyVariants {
|
|
|
53
56
|
/**
|
|
54
57
|
* Get the typography class for a component from its typographic variant props.
|
|
55
58
|
*
|
|
56
|
-
* Maps the size, weight, font, case, tint, alignment, and wrap variant props to their CSS classes
|
|
59
|
+
* Maps the colour, size, weight, font, case, tint, alignment, and wrap variant props to their CSS classes — the `color` variant is composed in via `getColorClass()`.
|
|
57
60
|
*
|
|
58
|
-
* @returns The combined typography class string
|
|
61
|
+
* @returns The combined typography class string (empty when no variants apply).
|
|
59
62
|
* @example getTypographyClass({ font: "title", size: "large", center: true })
|
|
63
|
+
* @example getTypographyClass({ color: "purple", tint: "40" })
|
|
60
64
|
* @see https://shelving.cc/ui/getTypographyClass
|
|
61
65
|
*/
|
|
62
|
-
export declare function getTypographyClass({ tint, weight, font, case: caseValue, size, ...props }: TypographyVariants): string
|
|
66
|
+
export declare function getTypographyClass({ tint, weight, font, case: caseValue, size, ...props }: TypographyVariants): string;
|
package/ui/style/Typography.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { getModuleClass } from "../util/css.js";
|
|
1
|
+
import { getClass, getModuleClass } from "../util/css.js";
|
|
2
|
+
import { getColorClass } from "./Color.js";
|
|
2
3
|
import TYPOGRAPHY_CSS from "./Typography.module.css";
|
|
3
4
|
/**
|
|
4
5
|
* Get the typography class for a component from its typographic variant props.
|
|
5
6
|
*
|
|
6
|
-
* Maps the size, weight, font, case, tint, alignment, and wrap variant props to their CSS classes
|
|
7
|
+
* Maps the colour, size, weight, font, case, tint, alignment, and wrap variant props to their CSS classes — the `color` variant is composed in via `getColorClass()`.
|
|
7
8
|
*
|
|
8
|
-
* @returns The combined typography class string
|
|
9
|
+
* @returns The combined typography class string (empty when no variants apply).
|
|
9
10
|
* @example getTypographyClass({ font: "title", size: "large", center: true })
|
|
11
|
+
* @example getTypographyClass({ color: "purple", tint: "40" })
|
|
10
12
|
* @see https://shelving.cc/ui/getTypographyClass
|
|
11
13
|
*/
|
|
12
14
|
export function getTypographyClass({ tint, weight, font, case: caseValue, size, ...props }) {
|
|
13
|
-
return getModuleClass(TYPOGRAPHY_CSS, caseValue && `case-${caseValue}`, tint && `tint-${tint}`, weight && `weight-${weight}`, font && `font-${font}`, size && `size-${size}`, props);
|
|
15
|
+
return getClass(getColorClass(props), getModuleClass(TYPOGRAPHY_CSS, caseValue && `case-${caseValue}`, tint && `tint-${tint}`, weight && `weight-${weight}`, font && `font-${font}`, size && `size-${size}`, props));
|
|
14
16
|
}
|
package/ui/style/Typography.tsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { getModuleClass } from "../util/css.js";
|
|
1
|
+
import { getClass, getModuleClass } from "../util/css.js";
|
|
2
|
+
import { type ColorVariants, getColorClass } from "./Color.js";
|
|
2
3
|
import type { TintVariant } from "./Tint.js";
|
|
3
4
|
import TYPOGRAPHY_CSS from "./Typography.module.css";
|
|
4
5
|
|
|
@@ -49,11 +50,13 @@ export type CaseVariant = "title" | "body" | "label" | "code" | "upper" | "lower
|
|
|
49
50
|
export type FontVariant = "title" | "body" | "label" | "code" | "serif" | "sans" | "monospace";
|
|
50
51
|
|
|
51
52
|
/**
|
|
52
|
-
* Typographic variant props — font-family, weight, case, size, tint, alignment, and wrap, applied via `getTypographyClass()`
|
|
53
|
+
* Typographic variant props — colour, font-family, weight, case, size, tint, alignment, and wrap, applied via `getTypographyClass()`
|
|
54
|
+
*
|
|
55
|
+
* - Extends `ColorVariants`, so anything that accepts typography also accepts the `color` variant.
|
|
53
56
|
*
|
|
54
57
|
* @see https://shelving.cc/ui/TypographyVariants
|
|
55
58
|
*/
|
|
56
|
-
export interface TypographyVariants {
|
|
59
|
+
export interface TypographyVariants extends ColorVariants {
|
|
57
60
|
/** Font size of the element. */
|
|
58
61
|
size?: SizeVariant | undefined;
|
|
59
62
|
/** Set CSS text `color:` to one of the shades of the current tint ladder. */
|
|
@@ -79,20 +82,24 @@ export interface TypographyVariants {
|
|
|
79
82
|
/**
|
|
80
83
|
* Get the typography class for a component from its typographic variant props.
|
|
81
84
|
*
|
|
82
|
-
* Maps the size, weight, font, case, tint, alignment, and wrap variant props to their CSS classes
|
|
85
|
+
* Maps the colour, size, weight, font, case, tint, alignment, and wrap variant props to their CSS classes — the `color` variant is composed in via `getColorClass()`.
|
|
83
86
|
*
|
|
84
|
-
* @returns The combined typography class string
|
|
87
|
+
* @returns The combined typography class string (empty when no variants apply).
|
|
85
88
|
* @example getTypographyClass({ font: "title", size: "large", center: true })
|
|
89
|
+
* @example getTypographyClass({ color: "purple", tint: "40" })
|
|
86
90
|
* @see https://shelving.cc/ui/getTypographyClass
|
|
87
91
|
*/
|
|
88
|
-
export function getTypographyClass({ tint, weight, font, case: caseValue, size, ...props }: TypographyVariants): string
|
|
89
|
-
return
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
92
|
+
export function getTypographyClass({ tint, weight, font, case: caseValue, size, ...props }: TypographyVariants): string {
|
|
93
|
+
return getClass(
|
|
94
|
+
getColorClass(props),
|
|
95
|
+
getModuleClass(
|
|
96
|
+
TYPOGRAPHY_CSS,
|
|
97
|
+
caseValue && `case-${caseValue}`,
|
|
98
|
+
tint && `tint-${tint}`,
|
|
99
|
+
weight && `weight-${weight}`,
|
|
100
|
+
font && `font-${font}`,
|
|
101
|
+
size && `size-${size}`,
|
|
102
|
+
props,
|
|
103
|
+
),
|
|
97
104
|
);
|
|
98
105
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The typography variant props set an element's text styling from a single helper — `<Heading font="title" size="large">`, `<Paragraph weight="strong" center>`, `<Small case="upper">`. They're **overrides** for one-off changes; for an app-wide change, retune the variables below in a theme file.
|
|
4
4
|
|
|
5
|
-
`getTypographyClass({ size, weight, font, case, tint, left, center, right, wrap, nowrap })` maps each prop to a class (e.g. `size="large"` → `size-large`, `font="title"` → `font-title`, `weight="strong"` → `weight-strong`, `case="upper"` → `case-upper`), and combines them with text alignment, tint colour, and wrapping. It supersedes the former `getFontClass()`, `getSizeClass()`, and `getWeightClass()` helpers, which were merged into this module.
|
|
5
|
+
`getTypographyClass({ color, size, weight, font, case, tint, left, center, right, wrap, nowrap })` maps each prop to a class (e.g. `size="large"` → `size-large`, `font="title"` → `font-title`, `weight="strong"` → `weight-strong`, `case="upper"` → `case-upper`), and combines them with text alignment, tint colour, and wrapping. `TypographyVariants` extends `ColorVariants`, so it also accepts `color` and composes [`getColorClass()`](/ui/getColorClass) internally — anything that opts into typography gets the `color` variant for free and no longer needs to extend `ColorVariants` or call `getColorClass()` separately. (`getColorClass()` stays exported for the rare element that wants colour without typography, such as `<Icon>`.) It also supersedes the former `getFontClass()`, `getSizeClass()`, and `getWeightClass()` helpers, which were merged into this module.
|
|
6
6
|
|
|
7
7
|
The semantic faces, weights, sizes, and cases are aliases of the base values, so a theme usually only needs to move the small set of base variables.
|
|
8
8
|
|