Design System
The colors, typefaces, measurements and components of the Doğa Derneği website. Values are read straight from the theme’s settings and components are drawn as they appear on the site, so this page changes as the design does.
Principles
The decisions behind how the site looks. When a decision changes, the text here is updated too.
-
A calm palette
Text, borders and backgrounds are in slate. Green is the accent: lines, markers and selected states. The filled green button is kept for conversion actions such as donating and subscribing.
-
Two typefaces
Headings are Spectral in regular weight, tightened with -0.03em letter spacing. Text, menus and the interface are DM Sans.
-
No capitals
Text is set in capitals only in the main menu. Nowhere else are capitals or widened letter spacing used.
-
Green underline
Highlighted links and the current menu item are marked with a 2 px green (primary-500) line 3 px below the text; the link text stays dark.
-
Modest corners
Cards are rounded by 12px, dropdown panels by 8px; buttons, badges and form fields by 4px.
-
Images fill the card
Photos run edge to edge: 4:3 on news cards, 3:4 on topic cards (4:5 on wide screens). Text on top of them stays legible over a scrim that darkens toward the bottom.
-
Quiet motion
Color transitions take 150–200 ms. Cards only expand or lift on screens browsed with a mouse; with reduced motion turned on, size transitions are switched off.
-
Readable for everyone
Text contrast is at least WCAG AA (4.5:1). Dialogs work with the keyboard: focus stays inside and Esc closes them.
Colors
Values are read from tailwind.config.js. The ratio on each swatch is the contrast of the text on it; 4.5:1 or more meets WCAG AA for normal text.
primary
Natural leaf green: the accent and action color. On large surfaces, only the lightest shades.
#F0FAF0
primary-50
#DFF4DF
primary-100
#C5E7C5
primary-200
#A4D2A4
primary-300
#7EB580
primary-400
#5E9660
primary-500
#467A48
primary-600
#346237
primary-700
#284C29
primary-800
#1E3B20
primary-900
#0D200E
primary-950
secondary
Slate neutrals: text, borders, backgrounds and the footer.
#F8FAFC
secondary-50
#F1F5F9
secondary-100
#E2E8F0
secondary-200
#CBD5E1
secondary-300
#94A3B8
secondary-400
#64748B
secondary-500
#475569
secondary-600
#334155
secondary-700
#1E293B
secondary-800
#0F172A
secondary-900
#020617
secondary-950
Usage
| Color | Role | Token |
|---|---|---|
| Text Headings, body text and links; the dark button’s fill. |
secondary-900 #0F172A
|
|
| Secondary text Descriptions, section labels, card summaries. |
secondary-600 #475569
|
|
| Muted text Dates and credit lines, menu descriptions. |
secondary-500 #64748B
|
|
| Border Cards, panels and form fields. |
secondary-200 #E2E8F0
|
|
| Background The page background, fading to white from the top; image placeholders. |
secondary-50 #F8FAFC
|
|
| Footer Background of the area at the bottom of the page. |
secondary-800 #1E293B
|
|
| Accent line Link underlines, the current menu item, list markers, the focus ring. |
primary-500 #5E9660
|
|
| Filled button Donating and subscribing; primary-800 on hover. |
primary-700 #346237
|
|
| Selected state Selected filters; the cover’s background in the featured publication. |
primary-100 #DFF4DF
|
|
| Light green background The featured publication panel, the year badge. |
primary-50 #F0FAF0
|
Typography
Typefaces and letter spacing are read from tailwind.config.js. The browser computes the values in the scale rows at this screen width; headings grow on wide screens.
Typefaces
Letter spacing
Spectral is drawn for text, so it looks loose at heading sizes; headings are tightened. Open (positive) letter spacing is not used.
tracking-display |
-0.03em |
Type scale
Protecting nature together
Protecting nature together
Protecting nature together
Protecting nature together
Protecting nature together
Protecting nature together
Protecting nature together
Protecting nature together
Editor content
Text written in the editor looks like this on pages and posts.
Paragraph text flows as written in the editor; a link inside it is a shade darker than the text around it.
- Dashes in unordered lists
- Markers are green
- Numbers in ordered lists
- Numbers are green too
Quotes are Spectral italic, with a green line on the left.
Logo
The logo files ship with the theme (img/logos/). At the top of the page the vertical logo hangs below the header bar on a white tab; once the page scrolls, the ring folds away and the wordmark settles into the bar.
Measurements
The browser measures these values at the current screen width: —.
Layout
| Token | Value | Usage |
|---|---|---|
--dd-container |
— | The widest the content gets. |
--dd-gutter |
— | Space at the screen edges; grows at sm and lg. |
--dd-header-bar |
— | Height of the header bar. |
--dd-header-clearance |
— | Where page content starts below the fixed header: the vertical logo tab and the space under it. |
--dd-read-text |
— | Width of the text column in the reading template. |
Breakpoints
Mobile first: each breakpoint applies from that width up. The ones in effect on this screen have a green dot.
sm: |
≥ 640px | |
md: |
≥ 768px | |
lg: |
≥ 1024px | |
xl: |
≥ 1280px | |
2xl: |
≥ 1536px |
Corners
rounded 4px
Buttons, badges, form fields.
rounded-sm 4px
rounded-md 8px
Dropdown panels: the mega menu, the search dialog.
rounded-lg 12px
rounded-xl 16px
rounded-2xl 24px
rounded-full 9999px
Pill badges, round icon buttons.
rounded-card 12px
All cards and the detail dialog.
Buttons
All buttons share the .dd-btn base: DM Sans, medium weight, small corners. The editor’s Button block looks like .dd-btn-secondary.
.dd-btn-primary Conversion actions: donating, subscribing to the newsletter, posting a comment.
.dd-btn-secondary A section’s main action, and editor buttons.
.dd-btn-outline Secondary actions and filters: All, categories, Go to Page.
.dd-btn-ghost Previous and next post links.
Badges
Small labels on cards and publication details; their text comes from the site.
Form
Text fields use .dd-input: a thin slate border and small corners; on focus, a green ring and a dark border. This is the newsletter form.
Cards
With the latest content, through the site’s own templates. News and publication cards open the detail dialog when clicked.
Publication card: list
The default view of the Publications Archive.
Doğa Derneği 2024 Yılı Faaliyet Raporu
Okaliptüs Ağaçlarının Biyoçeşitlilik Üzerine Etkisinin İncelenmesi
Publication card: grid
The archive’s grid view; 3:4 cover, summary hidden.
Doğa Derneği 2024 Yılı Faaliyet Raporu
Okaliptüs Ağaçlarının Biyoçeşitlilik Üzerine Etkisinin İncelenmesi
Doğa Sohbetleri
Featured publication
The panel that features a single publication on the home page: [dd_featured_publication id="…"].
Home page blocks
Blocks added to the home page with shortcodes; see them as they are on the Home page. The featured publication panel is under Cards.
[dd_topic_tabs] |
Topics Topic cards with photos: 2 columns on mobile, 3 on wide screens. The description opens when the card is hovered with a mouse. | parts/block-topic-tabs.php |
[dd_action_cards] |
Get involved Photo cards that slide sideways, with a film below. Hovering a card reveals its description and link. | parts/block-action-cards.php |
Icons
Phosphor Icons, written as <i class="ph ph-…">. The list is built by scanning the theme files; under each icon are the files that use it.