Site design → Style: fonts, corners, text size, shadows, page width #17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "site-design-fonts-corners"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a Style card to Site design for the look of the public site:
@fontsource-variablepackages served by the site itself, so they don't contact Google (GDPR). A browser downloads only the fonts a page uses.rounded-button, which is a pill when Round and square when Sharp.The card has a live sample. The defaults reproduce the current look.
How it works
styleglobal, the same as the header, footer and colors.siteStyleVars()in$shared/themeturns the choices into--site-*variables in the<style>that is already rendered in<head>. This applies on the public site and in the admin/preview.@themetokens in bothapp.cssfiles scale with those variables:--radius-*,--shadow-*,--container-3xl/6xl/7xland--font-*. Blocks keep their existing classes. The admin's own pages don't set the variables, so they look the same as before.rounded-[2rem]→rounded-panelrounded-[1.25rem]→rounded-card, and their arbitrary shadow →shadow-smVisible change: the Button block's buttons now follow the corner setting, like every other button on the site. With the default Round setting they become pills; before, they had DaisyUI's small radius.
Tested
scrollWidthwas 412 for both the public page and Site design.🤖 Generated with Claude Code
https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW