Cozytk Pages Portal Design System
1. Atmosphere & Identity
The portal feels like a compact publishing desk for lecture decks, labs, and personal GitHub Pages projects. It should be quiet, fast, and scannable: a maintainer can open it, see what is live, and jump to a page or repository without ceremony. The signature is a ledger-like project grid with restrained accent lines and precise metadata.
2. Color
Palette
| Role |
Token |
Light |
Dark |
Usage |
| Surface/primary |
--surface-primary |
#F8F7F3 |
#111312 |
Main page background |
| Surface/secondary |
--surface-secondary |
#FFFFFF |
#181B19 |
Cards and grouped surfaces |
| Surface/elevated |
--surface-elevated |
#F1EFE8 |
#20241F |
Stat panels and subtle bands |
| Text/primary |
--text-primary |
#171A18 |
#F4F2EC |
Headlines and primary text |
| Text/secondary |
--text-secondary |
#5D655F |
#B7BDB5 |
Body copy and descriptions |
| Text/tertiary |
--text-tertiary |
#80887F |
#7F897E |
Metadata |
| Border/default |
--border-default |
#D9D7CD |
#333A34 |
Cards and section dividers |
| Border/subtle |
--border-subtle |
#ECE9DE |
#262B27 |
Fine separators |
| Accent/primary |
--accent-primary |
#0F766E |
#5EEAD4 |
Links, focus, primary actions |
| Accent/hover |
--accent-hover |
#115E59 |
#99F6E4 |
Hover states |
| Accent/wash |
--accent-wash |
rgba(15, 118, 110, 0.04) |
rgba(94, 234, 212, 0.08) |
Background grid lines |
| Status/success |
--status-success |
#15803D |
#86EFAC |
Live status |
| Status/success-border |
--status-success-border |
#9CC9A9 |
#2E6E45 |
Live badge border |
| Status/warning |
--status-warning |
#A16207 |
#FDE68A |
Unchecked status |
| Status/error |
--status-error |
#B91C1C |
#FCA5A5 |
Broken status |
| Status/info |
--status-info |
#1D4ED8 |
#93C5FD |
Informational badges |
Rules
- Use the teal accent only for links, focus states, and live project highlights.
- Keep backgrounds warm-neutral but avoid beige monotony by using green-tinted text and borders.
- Never introduce new colors in CSS without adding them here first.
3. Typography
Scale
| Level |
Size |
Weight |
Line Height |
Tracking |
Usage |
| Display |
clamp(40px, 7vw, 86px) |
750 |
0.95 |
0 |
Hero title |
| H1 |
40px |
720 |
1.1 |
0 |
Page sections |
| H2 |
28px |
700 |
1.2 |
0 |
Group headings |
| H3 |
20px |
700 |
1.35 |
0 |
Card titles |
| Body/lg |
18px |
450 |
1.65 |
0 |
Lead paragraphs |
| Body |
16px |
450 |
1.6 |
0 |
Default text |
| Body/sm |
14px |
500 |
1.5 |
0 |
Metadata |
| Caption |
12px |
650 |
1.35 |
0.04em |
Badges and labels |
Font Stack
- Primary:
ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif
- Mono:
"SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace
- Serif: not used
Rules
- Use system fonts only to keep the portal fast and dependency-free.
- No negative letter spacing.
- Body text never goes below 14px except compact badges.
4. Spacing & Layout
Base Unit
All spacing derives from a base of 4px.
| Token |
Value |
Usage |
--space-1 |
4px |
Tight inline separation |
--space-2 |
8px |
Badge and link spacing |
--space-3 |
12px |
Compact card rhythm |
--space-4 |
16px |
Standard inner spacing |
--space-5 |
20px |
Card padding |
--space-6 |
24px |
Group gaps |
--space-8 |
32px |
Section inner gaps |
--space-10 |
40px |
Major grouping |
--space-12 |
48px |
Section separation |
--space-16 |
64px |
Hero separation |
Grid
- Max content width:
1180px
- Column system: responsive CSS grid with
minmax(260px, 1fr) cards.
- Breakpoints: mobile under 720px, desktop from 960px.
Rules
- Use grid for repeated projects, never fixed card widths.
- Cards use stable padding and minimum heights so metadata updates do not shift the layout.
5. Components
Project Card
- Structure: article, header row with status/category, title link, description, metadata list, action links.
- Variants: live, unchecked, featured.
- Spacing:
--space-5 card padding, --space-4 internal groups.
- States: hover lifts via border/accent color only; focus uses accent outline.
- Accessibility: title is the primary link, actions are plain anchors with visible focus.
- Motion: 160ms transform and border-color transition.
Stat Strip
- Structure: definition-list style grid with label and numeric value.
- Variants: default only.
- Spacing:
--space-5 panel padding.
- States: static.
- Accessibility: text labels are visible; no icon-only values.
- Motion: none.
6. Motion & Interaction
Timing
| Type |
Duration |
Easing |
Usage |
| Micro |
120ms |
ease-out |
Button and link feedback |
| Standard |
180ms |
ease-in-out |
Card hover |
| Emphasis |
360ms |
cubic-bezier(0.16, 1, 0.3, 1) |
Initial content entrance if used |
Rules
- Only animate
transform, opacity, border-color, and background-color.
- Respect
prefers-reduced-motion by removing transform transitions.
- Every link and control has hover and focus-visible states.
7. Depth & Surface
Strategy
Use borders-only with tonal shifts. No shadows.
| Type |
Value |
Usage |
| Default |
1px solid var(--border-default) |
Cards and panels |
| Subtle |
1px solid var(--border-subtle) |
Dividers |
Surfaces are separated by color, spacing, and border weight rather than drop shadows.