Add the frontend guides the v2 UI kit and compliance-portal need but that the first rework left uncovered: forms, routing, client state, and permission-gated UI. forms.md documents a tiered approach on Base UI Field/Form -- native constraints, then a validate function, then zod parsed in onSubmit, and react-hook-form only for large or dynamic forms -- and drops the custom useFormWithSchema wrapper. routing.md covers @probo/routes, navigation, typed params, URL-as-state, redirects, auth/protected routes, and the folded-in no-outlet-context rule. state-management.md gives a decision order across Relay, URL, local state, context, and zustand. permissions.md gates UI on the canUpdate/canDelete permission(action:) fields without re-encoding authorization in the client. Rename v2-colors.md to v2-tokens.md and add the typography, radius, shadow, and native-spacing scales alongside color. Extend ui.md with user feedback, empty-state, and accessibility sections; standardize toasts on Base UI's Toast (Toast.useToastManager) and retire the legacy useToast across ui.md, forms.md, error-handling.md, and relay.md. Add an Intl formatting section to i18n.md and a non-Relay HTTP / file upload-download section to ts-style.md. Update the AGENTS.md index and the v2-color-scale cursor rule for the new and renamed guides. Signed-off-by: Émile Ré <emile@probo.com>
35 lines
1.5 KiB
CSS
35 lines
1.5 KiB
CSS
/* Copyright (c) 2026 Probo Inc <hello@probo.com>.
|
|
*
|
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
* copyright notice and this permission notice appear in all copies.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
* PERFORMANCE OF THIS SOFTWARE.
|
|
*/
|
|
|
|
/*
|
|
* v2 theme entry
|
|
*
|
|
* Standalone Tailwind v4 theme for the v2 UI kit. An app opts in by importing
|
|
* this file instead of the v1 theme.css. Each token layer lives in its own
|
|
* file under ./theme; this entry just aggregates them.
|
|
*
|
|
* colors.css Radix color scales (solid + sand alpha) + palette reset
|
|
* typography.css Inter font + type scale (text-1…9) + font weights
|
|
* radius.css radius scale (rounded-1…6)
|
|
* shadows.css elevation scale (shadow-1…6)
|
|
*
|
|
* Spacing intentionally stays on Tailwind's native scale (not tokenized).
|
|
* See contrib/claude/v2-tokens.md for the full usage guide.
|
|
*/
|
|
@import "./theme/colors.css";
|
|
@import "./theme/typography.css";
|
|
@import "./theme/radius.css";
|
|
@import "./theme/shadows.css";
|