Skip to content

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.

50 16.7:1
#F0FAF0 primary-50
100 15.4:1
#DFF4DF primary-100
200 13.3:1
#C5E7C5 primary-200
300 10.5:1
#A4D2A4 primary-300
400 7.5:1
#7EB580 primary-400
500 5.1:1
#5E9660 primary-500
600 5.1:1
#467A48 primary-600
700 7.1:1
#346237 primary-700
800 9.7:1
#284C29 primary-800
900 12.3:1
#1E3B20 primary-900
950 17.1:1
#0D200E primary-950

secondary

Slate neutrals: text, borders, backgrounds and the footer.

50 17.1:1
#F8FAFC secondary-50
100 16.3:1
#F1F5F9 secondary-100
200 14.5:1
#E2E8F0 secondary-200
300 12.0:1
#CBD5E1 secondary-300
400 7.0:1
#94A3B8 secondary-400
500 4.8:1
#64748B secondary-500
600 7.6:1
#475569 secondary-600
700 10.4:1
#334155 secondary-700
800 14.6:1
#1E293B secondary-800
900 17.9:1
#0F172A secondary-900
950 20.2:1
#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

Pijamalı hasta yağız şoföre çabucak güvendi.
DM Sans font-sans Text and interface: body, menus, buttons, labels.
Pijamalı hasta yağız şoföre çabucak güvendi.
Spectral font-serif Headings and quotes.
Pijamalı hasta yağız şoföre çabucak güvendi.
ui-monospace font-mono Code and technical values.

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

Page title h1 —

Protecting nature together

Section title .dd-section-title —
Subheading h2 —
Subheading h3 —
Subheading h4 —
Subheading h5 —
Subheading h6 —
News card title .dd-card-title —
Section label .dd-section-label —
Body text .entry-content —
Date and credits .dd-post-meta —

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
  1. Numbers in ordered lists
  2. Numbers are green too

Quotes are Spectral italic, with a green line on the left.

Image caption

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.
TR .dd-btn-lang Language button: the other language’s code.

Badges

Small labels on cards and publication details; their text comes from the site.

2024 .dd-pub-badge--year Publication year.
Report .dd-pub-badge--type Publication type.
Kuş .dd-pub-badge--tag Publication tag.
News Event .dd-tag Categories and tags on a news card.
Birds
.dd-caption-badge Image caption; its background darkens when the image is hovered.

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.

Publication card: grid

The archive’s grid view; 3:4 cover, summary hidden.

Featured publication

The panel that features a single publication on the home page: [dd_featured_publication id="…"].

Doğa Derneği 2024 Yılı Faaliyet Raporu

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.

  • ph-arrow-left parts/block-action-cards.php, parts/subbrand-bar.php
  • ph-arrow-right inc/nav-walker.php, parts/block-action-cards.php, parts/block-featured-publication.php, parts/block-subpages.php, parts/card-publication.php
  • ph-arrow-square-out parts/content-single-publication.php, src/js/components/detail-modal.js
  • ph-arrow-up-right parts/block-topic-tabs.php
  • ph-binoculars parts/block-action-cards.php
  • ph-book-open parts/block-featured-publication.php, parts/card-publication.php, src/js/components/detail-modal.js
  • ph-download-simple parts/content-single-publication.php
  • ph-facebook-logo footer.php
  • ph-file-pdf parts/card-publication.php
  • ph-folder-notch-open parts/content-publication-list.php
  • ph-hand-heart parts/block-action-cards.php
  • ph-heart parts/block-action-cards.php
  • ph-instagram-logo footer.php
  • ph-list-bullets pages/dd_pub.php
  • ph-squares-four pages/dd_pub.php
  • ph-storefront parts/block-action-cards.php
  • ph-trophy parts/block-action-cards.php
  • ph-warning-circle src/js/components/detail-modal.js
  • ph-x parts/modal-staff.php, src/js/components/detail-modal.js
  • ph-x-logo footer.php
  • ph-youtube-logo footer.php