DESIGN.md
Overview
This document defines the built-in Nola Translator default theme. The appearance system supports multiple theme presets and user customization. Nola Translator is the preset currently shipped. In Settings → Appearance, users can choose a color mode, change any of the eight base colors, and set the font and size for each of the eight text styles. The values below describe Nola Translator before user customizations are applied.
The default theme uses neutral gray surfaces to organize the workspace and blue to identify primary actions and selections. Source text, translated text, and the current task lead the composition.
Use a compact desktop rhythm, semantic text styles, and familiar shadcn/ui shapes. Settings resemble an organized form, translation results resemble a readable document, and editors give their canvas the available space. Keep cards, headings, and backgrounds subordinate to these tasks.
| Principle | Application |
|---|---|
| Proximity | Keep a label closer to its control than to the next field. Separate unrelated groups with more space. |
| Alignment | Share a leading edge across headings and content. Align comparable numbers at the trailing edge. |
| Contrast | Distinguish primary actions and text roles. Give equally consequential choices equal visual weight. |
| Repetition | Repeat field order, component variants, terminology, and state placement across similar tasks. |
| Direct manipulation | Edit simple values beside their content. Provide a button alternative to dragging. |
| Stay in context | Reveal details inline or nearby, retaining selection, filters, and scroll position. |
| Simplified interaction | Keep essential tools visible and beside their objects. Reveal secondary tools on hover and keyboard focus. |
| Invitation | Make the next action discoverable. An empty state offers an explicit first step. |
| Transition | Explain a change with a short transition while surrounding content remains stable. |
| Immediate response | Acknowledge input immediately, display real progress, and preserve input after failure. |
Colors
The Nola Translator palette starts with eight editable colors. The primary color also supplies Chart color 1. The CSS derives light and dark surfaces, text colors, borders, and interaction states from this palette.
palette:
theme-color-1: "oklch(1 0 0)" # sRGB #FFFFFF
theme-color-2: "oklch(0.5700 0.1903 257.9419)" # sRGB #1D72E4
theme-color-3: "oklch(0.5500 0.0102 260.7048)" # sRGB #6E7278
theme-color-4: "oklch(0.5700 0.2203 24.8903)" # sRGB #DB1A2B
chart-2: "oklch(0.6369 0.1247 171.0112)" # sRGB #00A381
chart-3: "oklch(0.5495 0.2003 300.1164)" # sRGB #864AD2
chart-4: "oklch(0.6806 0.1901 45.0513)" # sRGB #F3680F
chart-5: "oklch(0.6198 0.2297 5.1656)" # sRGB #EC27732
3
4
5
6
7
8
9
These are the resolved default values. Components use the semantic roles so theme changes and user overrides flow through to the controls.
colors:
background: "oklch(0.9700 0.002856 260.7048)"
foreground: "#000000E0"
card: "{palette.theme-color-1}"
card-foreground: "{colors.foreground}"
popover: "{colors.card}"
popover-foreground: "{colors.foreground}"
primary: "{palette.theme-color-2}"
filled-control-foreground: "{palette.theme-color-1}"
primary-foreground: "{colors.filled-control-foreground}"
secondary: "{colors.muted}"
secondary-foreground: "{colors.foreground}"
muted: "oklch(0.9504 0.004182 260.7048)"
muted-foreground: "#000000A6"
accent: "oklch(0.9209 0.0294965 257.9419)"
accent-foreground: "oklch(0.3232 0.137016 257.9419)"
destructive: "{palette.theme-color-4}"
destructive-foreground: "{colors.filled-control-foreground}"
border: "oklch(0.8994 0.006426 260.7048)"
input: "oklch(0.6200 0.005202 260.7048)"
field-border: "{colors.border}"
ring: "{colors.primary}"
chart-1: "{colors.primary}"
chart-2: "{palette.chart-2}"
chart-3: "{palette.chart-3}"
chart-4: "{palette.chart-4}"
chart-5: "{palette.chart-5}"
sidebar: "{colors.background}"
sidebar-foreground: "{colors.foreground}"
sidebar-primary: "{colors.primary}"
sidebar-primary-foreground: "{colors.primary-foreground}"
sidebar-accent: "{colors.accent}"
sidebar-accent-foreground: "{colors.accent-foreground}"
sidebar-border: "{colors.border}"
sidebar-ring: "{colors.ring}"
background-dark: "oklch(0.1492 0.009282 260.7048)"
foreground-dark: "#FFFFFFD9"
card-dark: "oklch(0.1993 0.011118 260.7048)"
card-foreground-dark: "{colors.foreground-dark}"
popover-dark: "{colors.card-dark}"
popover-foreground-dark: "{colors.foreground-dark}"
primary-dark: "oklch(0.6496 0.1903 257.9419)"
filled-control-foreground-dark: "oklch(0.1205 0.009690 260.7048)"
primary-foreground-dark: "{colors.filled-control-foreground-dark}"
secondary-dark: "{colors.muted-dark}"
secondary-foreground-dark: "{colors.foreground-dark}"
muted-dark: "oklch(0.2207 0.009078 260.7048)"
muted-foreground-dark: "#FFFFFFA6"
accent-dark: "oklch(0.2804 0.0597542 257.9419)"
accent-foreground-dark: "oklch(0.8435 0.079926 257.9419)"
destructive-dark: "oklch(0.6789 0.209285 24.8903)"
destructive-foreground-dark: "{colors.filled-control-foreground-dark}"
border-dark: "oklch(0.2800 0.0102 260.7048)"
input-dark: "{palette.theme-color-3}"
field-border-dark: "{colors.border-dark}"
ring-dark: "{colors.primary-dark}"
chart-1-dark: "{colors.primary-dark}"
chart-2-dark: "oklch(0.6943 0.134676 171.0112)"
chart-3-dark: "oklch(0.6203 0.2003 300.1164)"
chart-4-dark: "oklch(0.7171 0.1901 45.0513)"
chart-5-dark: "oklch(0.6604 0.2297 5.1656)"
sidebar-dark: "{colors.background-dark}"
sidebar-foreground-dark: "{colors.foreground-dark}"
sidebar-primary-dark: "{colors.primary-dark}"
sidebar-primary-foreground-dark: "{colors.primary-foreground-dark}"
sidebar-accent-dark: "{colors.accent-dark}"
sidebar-accent-foreground-dark: "{colors.accent-foreground-dark}"
sidebar-border-dark: "{colors.border-dark}"
sidebar-ring-dark: "{colors.ring-dark}"2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
The page and sidebar share a background. Segmented controls use the muted color for the track and the card color for the selected segment. The tertiary surface mixes 96% of the muted surface with 4% of the foreground in OKLab. Selects, text fields, number fields, and color pickers use the theme border. The focus ring uses the primary color.
Typography
The default theme uses the system UI font stack for headings, body text, Small, and Muted, and the system monospace stack for Code. On Windows these typically resolve to Segoe UI and Consolas. The sizes below are the theme base values at 100% system text scale.
| Style | Light size | Dark size | Line height | Weight | Dark tracking | Use |
|---|---|---|---|---|---|---|
| H1 | 36px | 36px | 40px | 800 | normal | Main page title |
| H2 | 30px | 30px | 36px | 600 | normal | Main section |
| H3 | 24px | 24px | 32px | 600 | normal | Subsection |
| H4 | 20px | 20px | 28px | 600 | normal | Nested group heading |
| Body | 14px | 15px | 22px | 400 | 0.015em | Prose, navigation, controls, table values |
| Small | 12px | 12px | ≈17.14px | 500 | 0.02em | Short status or emphasized supporting text |
| Muted | 12px | 12px | ≈17.14px | inherit | 0.02em | Description or metadata |
| Code | 14px | 14px | 20px | 600 | normal | Code, command, log or API model identifier |
| Text role | Light | Dark |
|---|---|---|
text-primary | #000000E0 | #FFFFFFD9 |
text-secondary | #000000A6 | #FFFFFFA6 |
text-disabled | #00000040 | #FFFFFF40 |
Layout
| Appearance setting | Default |
|---|---|
| Color mode | Follow system |
| Theme | Nola Translator |
| Bottom bar | Fixed |
| Page transition | Fade |
| Liquid glass | Ultra |
| Density | Compact |
spacing:
base: 0.25rem
page-padding: 24px
narrow-page-padding: 16px
panel-gap: 16px
control-height: 36px
panel-padding: 20px
field-gap: 16px
label-gap: 8px
description-gap: 4px
page-heading-gap: 16px
section-heading-gap: 12px
paragraph-gap: 8px
reading-paragraph-gap: 12px
comfortable-control-height: 44px
comfortable-panel-padding: 28px
comfortable-panel-gap: 20px
comfortable-field-gap: 20px2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Materials
Liquid glass defaults to Ultra for surfaces that opt into the effect, such as subtitle tools over content. Content, ordinary cards, settings, menus, and dialogs use solid surfaces. Apply glass at the surface level so the controls within it keep their own treatment.
The main window backing material is independent of content surfaces. Glass surfaces honor reduced transparency and use a solid background in forced-color mode. Evaluate text contrast over the actual backdrop.
Elevation & Depth
:root {
--shadow-2xs: 0 2px 28px 0 hsl(214.7368 10.8571% 34.3137% / 0.05);
--shadow-xs: 0 2px 28px 0 hsl(214.7368 10.8571% 34.3137% / 0.05);
--shadow-sm: 0 2px 28px 0 hsl(214.7368 10.8571% 34.3137% / 0.10), 0 1px 2px -1px hsl(214.7368 10.8571% 34.3137% / 0.10);
--shadow: 0 2px 28px 0 hsl(214.7368 10.8571% 34.3137% / 0.10), 0 1px 2px -1px hsl(214.7368 10.8571% 34.3137% / 0.10);
--shadow-md: 0 2px 28px 0 hsl(214.7368 10.8571% 34.3137% / 0.10), 0 2px 4px -1px hsl(214.7368 10.8571% 34.3137% / 0.10);
--shadow-lg: 0 2px 28px 0 hsl(214.7368 10.8571% 34.3137% / 0.10), 0 4px 6px -1px hsl(214.7368 10.8571% 34.3137% / 0.10);
--shadow-xl: 0 2px 28px 0 hsl(214.7368 10.8571% 34.3137% / 0.10), 0 8px 10px -1px hsl(214.7368 10.8571% 34.3137% / 0.10);
--shadow-2xl: 0 2px 28px 0 hsl(214.7368 10.8571% 34.3137% / 0.25);
}
.dark {
--shadow-2xs: 0 4px 40px 0 hsl(0 0% 0% / 0.23);
--shadow-xs: 0 4px 40px 0 hsl(0 0% 0% / 0.23);
--shadow-sm: 0 4px 40px 0 hsl(0 0% 0% / 0.45), 0 1px 2px -1px hsl(0 0% 0% / 0.45);
--shadow: 0 4px 40px 0 hsl(0 0% 0% / 0.45), 0 1px 2px -1px hsl(0 0% 0% / 0.45);
--shadow-md: 0 4px 40px 0 hsl(0 0% 0% / 0.45), 0 2px 4px -1px hsl(0 0% 0% / 0.45);
--shadow-lg: 0 4px 40px 0 hsl(0 0% 0% / 0.45), 0 4px 6px -1px hsl(0 0% 0% / 0.45);
--shadow-xl: 0 4px 40px 0 hsl(0 0% 0% / 0.45), 0 8px 10px -1px hsl(0 0% 0% / 0.45);
--shadow-2xl: 0 4px 40px 0 hsl(0 0% 0% / 1);
}2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Shapes
Dropdowns, text fields, number fields, and color pickers share a field radius of 12 px in light mode and 22 px in dark mode.
rounded:
base: 0.875rem
base-dark: 1.5rem
sm: 10px
md: 12px
lg: 14px
xl: 18px
sm-dark: 20px
md-dark: 22px
lg-dark: 24px
xl-dark: 18px
button: 18px
field: "{rounded.md}"
field-dark: "{rounded.md-dark}"
demo-control: "{rounded.button}"
demo-card: 14px
demo-tab: 6px
demo-dialog: 14px
demo-plugin: 14px
foundation-card: 12px
foundation-code: 4px2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Components
components:
demo-button:
backgroundColor: "{colors.card}"
textColor: "{colors.foreground}"
typography: "{typography.body}"
rounded: "{rounded.button}"
padding: "0 16px"
height: "{spacing.control-height}"
demo-button-default:
backgroundColor: "{colors.primary}"
textColor: "{colors.primary-foreground}"
demo-button-default-dark:
backgroundColor: "{colors.primary-dark}"
textColor: "{colors.primary-foreground-dark}"
demo-button-secondary:
backgroundColor: "{colors.card}"
textColor: "{colors.foreground}"
demo-button-link:
backgroundColor: transparent
textColor: "{colors.primary}"
demo-button-icon:
width: "{spacing.control-height}"
padding: 0px
demo-input:
backgroundColor: "{colors.card}"
textColor: "{colors.foreground}"
typography: "{typography.body}"
borderColor: "{colors.field-border}"
rounded: "{rounded.field}"
height: "{spacing.control-height}"
width: "100%"
demo-card:
backgroundColor: "{colors.card}"
textColor: "{colors.foreground}"
typography: "{typography.body}"
rounded: "{rounded.demo-card}"
demo-tab-list:
backgroundColor: "{colors.muted}"
rounded: "{rounded.demo-control}"
height: 36px
padding: 4px
demo-tab:
textColor: "{colors.muted-foreground}"
typography: "{typography.body}"
rounded: "{rounded.demo-tab}"
height: 28px
demo-tab-selected:
backgroundColor: "{colors.card}"
textColor: "{colors.foreground}"
demo-tooltip:
backgroundColor: "{colors.foreground}"
textColor: "{colors.card}"
typography: "{typography.muted}"
rounded: "{rounded.demo-tab}"
padding: "4px 8px"
foundation-button:
typography: "{typography.body}"
padding: "0 12px"
height: "{spacing.control-height}"
foundation-button-secondary:
backgroundColor: "{colors.secondary}"
textColor: "{colors.foreground}"
foundation-button-destructive:
backgroundColor: "{colors.destructive}"
textColor: "{colors.destructive-foreground}"
foundation-card:
rounded: "{rounded.foundation-card}"
foundation-code:
backgroundColor: "{colors.secondary}"
typography: "{typography.code}"
rounded: "{rounded.foundation-code}"
padding: "2px 4px"2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72