nandi/frqpublic Fork 0
4dfc71908cc3f12174bb0d6dd8688ff3164879c3
Commits
Clone
git clone https://git.rickub.com/nandi/frq.git
git clone ssh://git@rickub.com/nandi/frq.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

nim_theme.dart · 45 lines · 1.5 KBDart Blame HistoryRaw
The renderer, and a transport bug that took four tries 58e6c97 nandi 15h ago1/// The design tokens, as Dart.
2///
3/// The same numbers `flutter/src/frq/theme/tokens.cljd` carries, in the
4/// language the renderer is written in. Duplicated rather than imported
5/// because that file is ClojureDart and this is the half that is leaving it;
6/// when the ClojureDart app goes, so does the other copy.
7library;
8
9import 'package:flutter/material.dart';
10
11const accent = Color(0xFFF4E3CF);
12const onAccent = Color(0xFF000000);
13const bg = Color(0xFF202833);
14const onBg = Color(0xFFCCD1D7);
15const component = Color(0xFF343C48);
16const componentHover = Color(0xFF48505A);
17const divider = Color(0x33CCD1D7);
18const card = Color(0xFF2C3440);
19const cardComponent = Color(0xFF3B4450);
20const onCard = Color(0xFFFFFFFF);
21const destructive = Color(0xFFFDA1A0);
22const onDestructive = Color(0xFF000000);
23const success = Color(0xFF92CF9C);
24
25/// `dim` is not a token of its own in the Clojure either — it is `onBg` at
26/// the opacity a caption wants, and naming it here keeps that one decision in
27/// one place.
28const dim = Color(0x99CCD1D7);
29
30const radiusXs = 2.0;
31const radiusS = 8.0;
32const radiusM = 8.0;
33
34const spaceXxxs = 4.0;
35const spaceXxs = 8.0;
36const spaceXs = 12.0;
37const spaceS = 16.0;
38const spaceM = 24.0;
39
40/// libcosmic's typography, which was code rather than configuration there and
41/// is code here for the same reason.
42const textTitle3 = 24.0; // :title
43const textTitle4 = 20.0; // :title-2
44const textBody = 14.0; // :label
45const textCaption = 12.0; // :dim-label, :status, :spinner