1 viewer
rust 1,860,549 · typescript 235,540 · javascript 132,956 · python 20,426 · 6,408 files · digest f04d4637f52b · built in 1.5 s · crystals off
crates/cre8-app-view-lib/src/style_tokens.rs
Items
const TOKEN_FIELDS const OPTIONAL_TOKEN_FIELDS const MAX_TOKEN_VALUE_LEN struct StyleTokenSet impl StyleTokenSet struct SiteTokens impl SiteTokens enum TokenInput struct TokenCatalogEntry const BASE_TOKEN_ROWS const OPTIONAL_TOKEN_ROWS static SYSTEM_FAMILIES static OBSIDIAN_TOKENS static STAGE_TOKENS static FORGE_TOKENS static DEFAULT_TOKENS static EARTH_TOKENS static BLUEPRINT_TOKENS
Functions
By call-graph weight (PageRank; 1.0 is the average function). 54 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| resolve_tokenssrc/style_tokens.rs:1374 | fn | 11 | 7 | 9 | 0 | 3.7 | |
| SiteTokens::to_root_csssrc/style_tokens.rs:730 | method | 3 | 1 | 8 | 3 | 3 | |
| SiteTokens::from_basesrc/style_tokens.rs:615 | method | 3 | 1 | 12 | 2 | 3 | |
| is_system_font_familysrc/style_tokens.rs:1213 | fn | 6 | 3 | 1 | 0 | 2.7 | |
| is_google_font_candidatesrc/style_tokens.rs:1209 | fn | 3 | 2 | 1 | 1 | 2.6 | |
| extract_google_font_familiessrc/style_tokens.rs:1174 | fn | 31 | 4 | 2 | 1 | 2.5 | |
| SiteTokens::from_setsrc/style_tokens.rs:492 | method | 120 | 1 | 3 | 0 | 2.3 | |
| SiteTokens::with_overridessrc/style_tokens.rs:622 | method | 11 | 4 | 8 | 3 | 2.3 | |
| SiteTokens::optional_valuessrc/style_tokens.rs:815 | method | 80 | 1 | 2 | 0 | 2 | |
| render_css_variablessrc/style_tokens.rs:204 | fn | 87 | 6 | 3 | 2 | 1.7 | |
| SiteTokens::valuessrc/style_tokens.rs:767 | method | 22 | 1 | 3 | 0 | 1.7 | |
| SiteTokens::google_font_familiessrc/style_tokens.rs:751 | method | 15 | 4 | 3 | 1 | 1.5 | |
| SiteTokens::apply_overridessrc/style_tokens.rs:638 | method | 28 | 6 | 3 | 2 | 1.5 | |
| SiteTokens::extra_variablessrc/style_tokens.rs:736 | method | 12 | 4 | 2 | 1 | 1.5 | |
| sanitize_token_valuesrc/style_tokens.rs:1144 | fn | 19 | 9 | 4 | 0 | 1.5 | |
| SiteTokens::field_mutsrc/style_tokens.rs:790 | method | 23 | 19 | 2 | 0 | 1.3 | |
| SiteTokens::optional_mutsrc/style_tokens.rs:896 | method | 81 | 77 | 2 | 0 | 1.3 | |
| push_varsrc/style_tokens.rs:1164 | fn | 7 | 1 | 1 | 0 | 1.2 | |
| SiteTokens::setsrc/style_tokens.rs:670 | method | 17 | 3 | 1 | 3 | 1.1 | |
| SiteTokens::clearsrc/style_tokens.rs:690 | method | 15 | 4 | 1 | 2 | 1.1 | |
| token_catalogsrc/style_tokens.rs:1116 | fn | 19 | 3 | 4 | 0 | 1 | |
| var_referencessrc/style_tokens.rs:1520 | fn | 25 | 6 | 1 | 0 | 0.9 | |
| StyleTokenSet::valuessrc/style_tokens.rs:173 | method | 22 | 1 | 1 | 0 | 0.7 | |
| StyleTokenSet::to_css_variablessrc/style_tokens.rs:168 | method | 3 | 1 | 0 | 2 | 0.5 | |
| SiteTokens::getsrc/style_tokens.rs:709 | method | 11 | 3 | 0 | 2 | 0.5 | |
| SiteTokens::to_css_variablessrc/style_tokens.rs:723 | method | 3 | 1 | 0 | 3 | 0.5 | |
| css_variables_produce_valid_root_blocksrc/style_tokens.rs:1391 | fn | 11 | 1 | 0 | 0 | 0.5 | |
| css_variables_emit_google_fonts_importsrc/style_tokens.rs:1404 | fn | 9 | 1 | 0 | 0 | 0.5 | |
| css_variables_dedup_font_importssrc/style_tokens.rs:1415 | fn | 6 | 1 | 0 | 0 | 0.5 | |
| forge_tokens_emit_archivo_importssrc/style_tokens.rs:1423 | fn | 7 | 1 | 0 | 0 | 0.5 | |
| default_tokens_skip_system_fontssrc/style_tokens.rs:1432 | fn | 9 | 1 | 0 | 0 | 0.5 | |
| resolve_tokens_returns_correct_setssrc/style_tokens.rs:1443 | fn | 8 | 1 | 0 | 1 | 0.5 | |
| token_sets_emit_every_themeable_name_the_section_styles_readsrc/style_tokens.rs:1463 | fn | 21 | 3 | 0 | 0 | 0.5 | |
| section_styles_and_tokens_both_define_the_accent_so_order_decidessrc/style_tokens.rs:1491 | fn | 4 | 1 | 0 | 0 | 0.5 | |
| error_hint_class_ships_in_both_stylesheetssrc/style_tokens.rs:1508 | fn | 8 | 2 | 0 | 0 | 0.5 | |
| shared_entity_fragment_is_the_single_sourcesrc/style_tokens.rs:1555 | fn | 38 | 3 | 0 | 0 | 0.5 | |
| shared_entity_aliases_are_bound_in_both_stylesheetssrc/style_tokens.rs:1603 | fn | 21 | 6 | 0 | 1 | 0.5 | |
| token_set_serializes_to_json_and_backsrc/style_tokens.rs:1626 | fn | 6 | 1 | 0 | 0 | 0.5 | |
| earth_tokens_emit_dm_sans_and_fraunces_importssrc/style_tokens.rs:1634 | fn | 8 | 1 | 0 | 0 | 0.5 | |
| site_tokens_without_overrides_emit_exactly_the_base_setsrc/style_tokens.rs:1650 | fn | 7 | 2 | 0 | 1 | 0.5 | |
| site_tokens_apply_overrides_by_field_namesrc/style_tokens.rs:1659 | fn | 21 | 1 | 0 | 2 | 0.5 | |
| heading_token_is_emitted_only_when_the_theme_sets_itsrc/style_tokens.rs:1686 | fn | 23 | 1 | 0 | 2 | 0.5 | |
| heading_token_validates_like_any_other_and_trims_the_keysrc/style_tokens.rs:1714 | fn | 11 | 1 | 0 | 2 | 0.5 | |
| site_tokens_reject_injection_and_report_unknown_keyssrc/style_tokens.rs:1727 | fn | 20 | 2 | 0 | 2 | 0.5 | |
| unknown_token_base_falls_back_to_default_with_a_warningsrc/style_tokens.rs:1749 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| sanitize_token_value_accepts_real_css_valuessrc/style_tokens.rs:1756 | fn | 6 | 2 | 0 | 1 | 0.5 | |
| blueprint_tokens_resolve_and_name_the_display_facesrc/style_tokens.rs:1764 | fn | 5 | 1 | 0 | 3 | 0.5 | |
| all_tokens_produce_all_23_variablessrc/style_tokens.rs:1771 | fn | 12 | 2 | 0 | 0 | 0.5 | |
| accent_font_round_trips_and_participates_in_font_loadingsrc/style_tokens.rs:1787 | fn | 18 | 1 | 0 | 4 | 0.5 | |
| each_optional_token_sets_emits_and_rejects_bad_valuessrc/style_tokens.rs:1810 | fn | 30 | 3 | 0 | 2 | 0.5 | |
| optional_tokens_emit_in_order_and_round_tripsrc/style_tokens.rs:1844 | fn | 23 | 2 | 0 | 2 | 0.5 | |
| null_clears_an_optional_token_and_leaves_base_tokens_alonesrc/style_tokens.rs:1871 | fn | 12 | 1 | 0 | 3 | 0.5 | |
| token_catalog_covers_every_settable_key_and_nothing_elsesrc/style_tokens.rs:1885 | fn | 25 | 3 | 0 | 3 | 0.5 | |
| the_shared_site_css_reads_every_optional_tokensrc/style_tokens.rs:1914 | fn | 13 | 2 | 0 | 0 | 0.5 |
Source not readable from this process.