psychic-ui 0.0.0
Loading...
Searching...
No Matches
psychic_ui::themes Namespace Reference

Variables

constexpr Typography deskType
constexpr Metrics deskMetrics
constexpr Theme deskDark
constexpr Theme deskLight
constexpr Typography floatTypography
constexpr Sizes floatSizes
constexpr Metrics floatMetrics
constexpr Theme floatLight
constexpr Theme floatDark
constexpr Theme oneDark
constexpr Theme oneLight
constexpr Theme pivotalDark
constexpr Theme pivotalLight
constexpr Theme psychic
constexpr Typography ubuntuType

Detailed Description

P2 Desk: Pivotal made into a desktop tool that is friendly with touch screens (.lavish/design-system-options.html, P2). Pivotal's colors (light on a white base), a denser type scale and controls, 4 px corners, flush panes. Its sizes switch with the input mode: for a pointer they are the board's "P2 Desk as it was"; by touch, approach B's (40 px rows and controls, text a step larger, icons 2 px larger), with approach C's hit slop as the floor.

S5 Float, the sample skin set's themes (.lavish/design-system-options.html, round 3): rounded panels floating over a dotted canvas, gentle two-layer shadows, neutral greys and a violet accent, light first. The canvas is the frame color; panels are the surface. Typography and metrics are shared by both.

Pivotal's design system (packages/ui/src/styles/tokens.css), translated value for value: P1 Faithful, the default skin set's look. Translucent tokens keep their alpha; Pivotal's color-mix values are precomputed. Typography and metrics are the defaults of their structs, which are Pivotal's.

Variable Documentation

◆ deskDark

Theme psychic_ui::themes::deskDark
inlineconstexpr
Initial value:
{
.name = "Desk Dark",
.scheme = ColorScheme::Dark,
.palette = pivotalDark.palette,
.elevation = pivotalDark.elevation,
.type = deskType,
.metrics = deskMetrics,
}
constexpr Theme pivotalDark
Definition pivotal.hpp:15
constexpr Metrics deskMetrics
Definition desk.hpp:31
constexpr Typography deskType
Definition desk.hpp:16

Desk Dark: Pivotal Dark's colors, elevations and canvas at desk sizes

◆ deskLight

Theme psychic_ui::themes::deskLight
inlineconstexpr
Initial value:
{
.name = "Desk Light",
.scheme = ColorScheme::Light,
.palette = [] {
palette.base = rgb(0xFFFFFF);
palette.page = rgb(0xFFFFFF);
return palette;
}(),
.elevation = pivotalLight.elevation,
.type = deskType,
.metrics = deskMetrics,
}
Definition palette.hpp:9
constexpr Theme pivotalLight
Definition pivotal.hpp:64
constexpr Color rgb(std::uint32_t rgb)
Definition Color.hpp:68
Definition Theme.hpp:25

Desk Light: Pivotal Light's colors on a white base and page, its elevations and canvas, at desk sizes

◆ deskMetrics

Metrics psychic_ui::themes::deskMetrics
inlineconstexpr

Desk's metrics: 4 px corners (3 on check boxes, badges and key caps), no page inset, 12 px gutters, the board's bars and panes; for a pointer 18 / 22 / 24 px controls and 26 px rows, by touch 24 / 36 / 40 and 40. Pivotal's motion.

◆ deskType

Typography psychic_ui::themes::deskType
inlineconstexpr
Initial value:
{
.xxs = {.size = 10, .leading = 14},
.xs = {.size = 11, .leading = 16},
.sm = {.size = 11.5f, .leading = 17},
.base = {.size = 12, .leading = 18},
.md = {.size = 13, .leading = 18},
.xl = {.size = 16, .leading = 22},
.xxl = {.size = 18, .leading = 24},
}

Desk's type: Inter, a half step under Pivotal's (body 11.5 px, inputs and menus 12, titles 13)

◆ floatDark

Theme psychic_ui::themes::floatDark
inlineconstexpr

Float Dark: a near-black canvas, charcoal panels lifted by a faint light ring, a lighter violet

◆ floatLight

Theme psychic_ui::themes::floatLight
inlineconstexpr

Float Light, the set's default: a soft grey canvas, white panels, near-black text, violet where you act

◆ floatSizes

Sizes psychic_ui::themes::floatSizes
inlineconstexpr
Initial value:
{
.controlXs = 20,
.controlSm = 28,
.controlMd = 30,
.rowSm = 30,
.rowMd = 34,
}

◆ floatTypography

Typography psychic_ui::themes::floatTypography
inlineconstexpr
Initial value:
{
.xxs = {.size = 10.5f, .leading = 14},
.xs = {.size = 11, .leading = 16},
.sm = {.size = 12, .leading = 18},
.base = {.size = 12.5f, .leading = 19},
.md = {.size = 13.5f, .leading = 20},
.xl = {.size = 17, .leading = 24},
.xxl = {.size = 20, .leading = 28},
}

◆ oneDark

Theme psychic_ui::themes::oneDark
inlineconstexpr

Atom's One Dark, in Ubuntu

◆ oneLight

Theme psychic_ui::themes::oneLight
inlineconstexpr

Atom's One Light, in Ubuntu

◆ pivotalDark

Theme psychic_ui::themes::pivotalDark
inlineconstexpr

Pivotal's dark theme, its default: a near-black base with barely-lighter raised surfaces, hairline borders and one indigo accent

◆ pivotalLight

Theme psychic_ui::themes::pivotalLight
inlineconstexpr

Pivotal's light theme: the same restraint on a near-white base; layers separate by a step of grey, overlays float white above everything

◆ psychic

Theme psychic_ui::themes::psychic
inlineconstexpr

Dark grays with a cyan accent, in Ubuntu

◆ ubuntuType

Typography psychic_ui::themes::ubuntuType
inlineconstexpr
Initial value:
{
.regular = {.name = "Ubuntu Regular", .path = "res/fonts/Ubuntu/Ubuntu-Regular.ttf"},
.medium = {.name = "Ubuntu Medium", .path = "res/fonts/Ubuntu/Ubuntu-Medium.ttf"},
.semiBold = {.name = "Ubuntu Bold", .path = "res/fonts/Ubuntu/Ubuntu-Bold.ttf"},
}

The Ubuntu typeface (res/fonts/Ubuntu, UFL) on Pivotal's scale: the One and Psychic themes' type