{% extends 'base.html.twig' %} {% block title %}Typography - Design System - Bubul{% endblock %} {% block body %}
{# ===== HEADER ===== #}
Atomes /

Typography

Styles typographiques pour titres, textes et labels

{# ===== USAGE ===== #}

Usage

{% verbatim %}{% include '_atoms/typography/typography.html.twig' with {
    text: 'Bienvenue sur Bubul',
    tag: 'h1',
    variant: 'h1',
    color: 'default'
} %}{% endverbatim %}

Fichier : templates/_atoms/typography/typography.html.twig

{# ===== ÉCHELLE TYPOGRAPHIQUE ===== #}

Échelle typographique

Paramètre : variant

Display {% include '_atoms/typography/typography.html.twig' with { text: 'Display Title', tag: 'h1', variant: 'display' } %}
H1 {% include '_atoms/typography/typography.html.twig' with { text: 'Heading 1', tag: 'h1', variant: 'h1' } %}
H2 {% include '_atoms/typography/typography.html.twig' with { text: 'Heading 2', tag: 'h2', variant: 'h2' } %}
H3 {% include '_atoms/typography/typography.html.twig' with { text: 'Heading 3', tag: 'h3', variant: 'h3' } %}
H4 {% include '_atoms/typography/typography.html.twig' with { text: 'Heading 4', tag: 'h4', variant: 'h4' } %}
H5 {% include '_atoms/typography/typography.html.twig' with { text: 'Heading 5', tag: 'h5', variant: 'h5' } %}
H6 {% include '_atoms/typography/typography.html.twig' with { text: 'Heading 6', tag: 'h6', variant: 'h6' } %}
Lead {% include '_atoms/typography/typography.html.twig' with { text: 'Lead paragraph for introductions', variant: 'lead' } %}
Body {% include '_atoms/typography/typography.html.twig' with { text: 'Body text for regular content', variant: 'body' } %}
Body SM {% include '_atoms/typography/typography.html.twig' with { text: 'Smaller body text for secondary info', variant: 'body-sm' } %}
Small {% include '_atoms/typography/typography.html.twig' with { text: 'Small text for footnotes', variant: 'small' } %}
Caption {% include '_atoms/typography/typography.html.twig' with { text: 'Caption text', variant: 'caption' } %}
Label {% include '_atoms/typography/typography.html.twig' with { text: 'Form label', tag: 'label', variant: 'label' } %}
Overline {% include '_atoms/typography/typography.html.twig' with { text: 'Overline text', variant: 'overline' } %}
{# ===== COULEURS ===== #}

Couleurs

Paramètre : color

{% include '_atoms/typography/typography.html.twig' with { text: 'Default - Texte principal', variant: 'body', color: 'default' } %} {% include '_atoms/typography/typography.html.twig' with { text: 'Muted - Texte secondaire', variant: 'body', color: 'muted' } %} {% include '_atoms/typography/typography.html.twig' with { text: 'Light - Texte discret', variant: 'body', color: 'light' } %} {% include '_atoms/typography/typography.html.twig' with { text: 'Primary - Texte accentué', variant: 'body', color: 'primary' } %} {% include '_atoms/typography/typography.html.twig' with { text: 'Success - Message positif', variant: 'body', color: 'success' } %} {% include '_atoms/typography/typography.html.twig' with { text: 'Error - Message d\'erreur', variant: 'body', color: 'error' } %} {% include '_atoms/typography/typography.html.twig' with { text: 'Warning - Avertissement', variant: 'body', color: 'warning' } %} {% include '_atoms/typography/typography.html.twig' with { text: 'Info - Information', variant: 'body', color: 'info' } %} {% include '_atoms/typography/typography.html.twig' with { text: 'Cohorts - Couleur produit', variant: 'body', color: 'cohorts' } %} {% include '_atoms/typography/typography.html.twig' with { text: 'Gradient - Dégradé bleu Bubul', variant: 'h3', color: 'gradient' } %}
{% include '_atoms/typography/typography.html.twig' with { text: 'White - Sur fond sombre', variant: 'body', color: 'white' } %}
{# ===== GRAISSES ===== #}

Graisses

Paramètre : weight (surcharge la variante)

{% include '_atoms/typography/typography.html.twig' with { text: 'Light (300)', variant: 'body', weight: 'light' } %} {% include '_atoms/typography/typography.html.twig' with { text: 'Normal (400)', variant: 'body', weight: 'normal' } %} {% include '_atoms/typography/typography.html.twig' with { text: 'Medium (500)', variant: 'body', weight: 'medium' } %} {% include '_atoms/typography/typography.html.twig' with { text: 'Semibold (600)', variant: 'body', weight: 'semibold' } %} {% include '_atoms/typography/typography.html.twig' with { text: 'Bold (700)', variant: 'body', weight: 'bold' } %} {% include '_atoms/typography/typography.html.twig' with { text: 'Extrabold (800)', variant: 'body', weight: 'extrabold' } %}
{# ===== ALIGNEMENTS ===== #}

Alignements

Paramètre : align

{% include '_atoms/typography/typography.html.twig' with { text: 'Texte aligné à gauche (défaut)', variant: 'body', align: 'left' } %}
{% include '_atoms/typography/typography.html.twig' with { text: 'Texte centré', variant: 'body', align: 'center' } %}
{% include '_atoms/typography/typography.html.twig' with { text: 'Texte aligné à droite', variant: 'body', align: 'right' } %}
{# ===== POLICES ===== #}

Polices

Titres

Poppins

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz

0123456789

Corps de texte

Roboto

ABCDEFGHIJKLMNOPQRSTUVWXYZ

abcdefghijklmnopqrstuvwxyz

0123456789

{# ===== EXEMPLE : PAGE HERO ===== #}

Exemple : Section Hero

{% include '_atoms/typography/typography.html.twig' with { text: 'NOUVELLE FONCTIONNALITÉ', variant: 'overline', color: 'primary', align: 'center' } %} {% include '_atoms/typography/typography.html.twig' with { text: 'Créez des formations en quelques clics', tag: 'h1', variant: 'display', align: 'center', class: 'mt-4' } %} {% include '_atoms/typography/typography.html.twig' with { text: 'Bubul utilise l\'intelligence artificielle pour transformer vos documents PDF en parcours de formation Moodle complets et engageants.', variant: 'lead', color: 'muted', align: 'center', class: 'mt-6' } %}
{# ===== EXEMPLE : ARTICLE ===== #}

Exemple : Article

{% include '_atoms/typography/typography.html.twig' with { text: 'Guide de démarrage', tag: 'h2', variant: 'h2' } %} {% include '_atoms/typography/typography.html.twig' with { text: 'Apprenez à utiliser Bubul en 5 minutes', variant: 'lead', color: 'muted', class: 'mt-2' } %} {% include '_atoms/typography/typography.html.twig' with { text: '1. Créer votre compte', tag: 'h3', variant: 'h3', class: 'mt-8' } %} {% include '_atoms/typography/typography.html.twig' with { text: 'Commencez par créer votre compte sur la plateforme. Vous recevrez des crédits gratuits pour tester toutes les fonctionnalités.', variant: 'body', class: 'mt-3' } %} {% include '_atoms/typography/typography.html.twig' with { text: '2. Importer un document', tag: 'h3', variant: 'h3', class: 'mt-6' } %} {% include '_atoms/typography/typography.html.twig' with { text: 'Uploadez votre PDF et laissez l\'IA analyser son contenu. Le système extrait automatiquement la structure et les informations clés.', variant: 'body', class: 'mt-3' } %} {% include '_atoms/typography/typography.html.twig' with { text: 'Note: Les fichiers PDF de plus de 20 Mo ne sont pas supportés.', variant: 'small', color: 'muted', class: 'mt-2' } %}
{# ===== PARAMÈTRES ===== #}

Paramètres

Paramètre Type Défaut Description
textstring''Contenu textuel
tagstringph1-h6, p, span, label
variantstringbodydisplay, h1-h6, lead, body, body-sm, small, caption, label, overline
weightstringnulllight, normal, medium, semibold, bold, extrabold
colorstringdefaultdefault, muted, light, primary, success, error, warning, info, cohorts, white, inherit, gradient
alignstringnullleft, center, right
classstring''Classes additionnelles
{% endblock %}