Denzel design system (Astro)
Content-free building blocks of the Denzel template: .astro components with the same names, props and classes as the
Next.js edition of Denzel. Components never import page copy; sections pass it in (src/lib/to-ui.ts maps
content items to card props). Shared prop types are in types.ts. The live catalog is /style-guide (public, noindex, not
in the sitemap).
Tokens
Section titled “Tokens”| File | Holds |
|---|---|
theme.css |
colours (ink, body, grey, accent, navy, pink, black, rule, frame, veil, scrim, search*, field, error), breakpoints md 810 and lg 1200 (phone is the default), ease-spring (the photo hover spring), the two fallback fonts |
tokens/text.ts |
text.title, h3, h4, cardXl…cardSm, nav, sectionTitle, paragraph, body, small, meta, tiny |
tokens/motion.ts |
spring (500 / 60), springSoft, slideSpring (200 / 40), searchSpring (600 / 40) for Motion |
Components
Section titled “Components”| Group | Components |
|---|---|
| brand | Logo |
| actions | PillButton, NewsletterForm |
| navigation | SearchDialog |
| layout | Section, Divider, WithSidebar (sidebar in the sidebar slot), SectionTitle, Breadcrumbs |
| data | PostMeta, Dots, SocialIcons |
| cards | PostCard (seven variants), PostPhoto |
| widgets | Widget, AboutWidget, RecentWidget, TopicsWidget |
| media | FillImage, SizedImage, PostSlider |
| patterns, utils, icons | RichText, RichTextInline, CurrentYear, Icon |
Scripts
Section titled “Scripts”scripts/*.ts hold the interactions (search, post slider, newsletter, current year); the header’s menu is
src/components/site/header.ts. Each exports init*() with no arguments, called by the component’s own <script>; helpers that
take arguments (openSearch, utils/tween.ts, utils/play.ts) have other names.
Standard Tailwind class names, no copy in components, links from routes, positioning belongs to the caller (cn does not merge
classes: pass whole class strings). New component: add it to /style-guide, this table and the spec.