Skip to content

feat(front) - Refactor tailwind CSS#155

Merged
QuentinMadura merged 10 commits intodevfrom
122-refactor-tailwind
Mar 27, 2025
Merged

feat(front) - Refactor tailwind CSS#155
QuentinMadura merged 10 commits intodevfrom
122-refactor-tailwind

Conversation

@QuentinMadura
Copy link
Contributor

No description provided.

@QuentinMadura QuentinMadura changed the title Refactor CSS and move to tailwind v4 draft : Refactor CSS and move to tailwind v4 Mar 26, 2025
</template>

<style scoped>
@reference "@/styles/main.css";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--color-red: red;

/* Scale colors */
@theme {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh wow 😮

@QuentinMadura QuentinMadura force-pushed the 122-refactor-tailwind branch from d3ad304 to 472c683 Compare March 26, 2025 20:23
vue()
vue(),
//@ts-ignore
tailwindcss()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ludovicdmt ludovicdmt linked an issue Mar 27, 2025 that may be closed by this pull request
4 tasks
@QuentinMadura QuentinMadura force-pushed the 122-refactor-tailwind branch 4 times, most recently from b9dba68 to 4d5924f Compare March 27, 2025 10:21
@QuentinMadura QuentinMadura force-pushed the 122-refactor-tailwind branch from 4d5924f to 9c15947 Compare March 27, 2025 10:23
Copy link
Contributor

@Marc-AntoineA Marc-AntoineA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merci, très chouette amélioration ! Tu maîtrises bien tailwind :)

Quelques questions, essentiellement de la curiosité.

},
"dependencies": {
"@tailwindcss/postcss": "^4.0.14",
"@tailwindcss/vite": "^4.0.17",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merci !!

.hexagon {
font-family: var(--font-accent);
position: relative;
clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3

<template>
<div data-cy="layer-switcher">
<label for="layer-select" class="font-accent">Choix du calque</label>
<label for="layer-select" class="font-mono">Choix du calque</label>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Qu’est-ce qui a motivé ce changement d’un nom de classe sémantique vers un nom de classe descriptif. En l'occurence, je m’en moque que la font soit mono, par contre, c’est très important pour moi de savoir que c’est la font qui me sert à mettre en avant du texte.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pas trop de justification pour être honnête. J'ai donc remis font-accent

:score="index"
:label="`${index}`"
size="small"
:size="ScoreLabelSize.SMALL"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L’intérêt ici est de pouvoir typer la props :size et donc d’éviter qu’on écrive n'importe quelle valeur c’est ça ? 

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Effectivement c'est pour avoir un typage et pour éviter les erreurs. Au-delà de ça, si on doit modifier la valeur "small", on n'a qu'à changer la constante ScoreLabelSize.SMALL à un seul endroit. Et puis je trouve ça plus maintenable et évolutif d'utiliser des enum plutôt que des strings

@maxbellec maxbellec changed the title draft : Refactor CSS and move to tailwind v4 draft : Refactor tailwind CSS Mar 27, 2025
@QuentinMadura
Copy link
Contributor Author

closes #122

@QuentinMadura QuentinMadura changed the title draft : Refactor tailwind CSS #122 - Refactor tailwind CSS Mar 27, 2025
@QuentinMadura QuentinMadura changed the title #122 - Refactor tailwind CSS feat(front) - Refactor tailwind CSS Mar 27, 2025
@QuentinMadura QuentinMadura merged commit b7ff4cc into dev Mar 27, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ETQ dev je veux faire une refacto tailwind du front

3 participants