@datatechsolutions/tympan-tokens 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +105 -0
- package/README.md +318 -0
- package/dist/contrast-report.md +13955 -0
- package/dist/dtcg/astrlabe.dark-high.tokens.json +2947 -0
- package/dist/dtcg/astrlabe.dark.tokens.json +2947 -0
- package/dist/dtcg/astrlabe.light-high.tokens.json +2947 -0
- package/dist/dtcg/astrlabe.light.tokens.json +2947 -0
- package/dist/dtcg/base.tokens.json +422 -0
- package/dist/dtcg/density.comfortable.tokens.json +48 -0
- package/dist/dtcg/density.compact.tokens.json +48 -0
- package/dist/dtcg/density.default.tokens.json +48 -0
- package/dist/dtcg/fakhir.dark-high.tokens.json +2971 -0
- package/dist/dtcg/fakhir.dark.tokens.json +2971 -0
- package/dist/dtcg/fakhir.light-high.tokens.json +2971 -0
- package/dist/dtcg/fakhir.light.tokens.json +2971 -0
- package/dist/dtcg/flow.tokens.json +675 -0
- package/dist/dtcg/high-contrast.dark.tokens.json +2943 -0
- package/dist/dtcg/high-contrast.light.tokens.json +2943 -0
- package/dist/dtcg/neutral.dark-high.tokens.json +2947 -0
- package/dist/dtcg/neutral.dark.tokens.json +2947 -0
- package/dist/dtcg/neutral.light-high.tokens.json +2947 -0
- package/dist/dtcg/neutral.light.tokens.json +2947 -0
- package/dist/dtcg/print/print-aquarela.dark.tokens.json +3014 -0
- package/dist/dtcg/print/print-aquarela.light.tokens.json +3009 -0
- package/dist/dtcg/print/print-art-nouveau.dark.tokens.json +2944 -0
- package/dist/dtcg/print/print-art-nouveau.light.tokens.json +2944 -0
- package/dist/dtcg/print/print-atlas-oficial.dark.tokens.json +2945 -0
- package/dist/dtcg/print/print-atlas-oficial.light.tokens.json +2945 -0
- package/dist/dtcg/print/print-azulejo-modernista.dark.tokens.json +2946 -0
- package/dist/dtcg/print/print-azulejo-modernista.light.tokens.json +2946 -0
- package/dist/dtcg/print/print-bauhaus.dark.tokens.json +2946 -0
- package/dist/dtcg/print/print-bauhaus.light.tokens.json +2942 -0
- package/dist/dtcg/print/print-blocos-coloridos.dark.tokens.json +2974 -0
- package/dist/dtcg/print/print-blocos-coloridos.light.tokens.json +2967 -0
- package/dist/dtcg/print/print-brutalista.dark.tokens.json +2956 -0
- package/dist/dtcg/print/print-brutalista.light.tokens.json +2956 -0
- package/dist/dtcg/print/print-caderno.dark.tokens.json +2958 -0
- package/dist/dtcg/print/print-caderno.light.tokens.json +2954 -0
- package/dist/dtcg/print/print-cartao-postal.dark.tokens.json +2958 -0
- package/dist/dtcg/print/print-cartao-postal.light.tokens.json +2954 -0
- package/dist/dtcg/print/print-cientifico.dark.tokens.json +2944 -0
- package/dist/dtcg/print/print-cientifico.light.tokens.json +2944 -0
- package/dist/dtcg/print/print-concretismo.dark.tokens.json +2946 -0
- package/dist/dtcg/print/print-concretismo.light.tokens.json +2942 -0
- package/dist/dtcg/print/print-construtivismo.dark.tokens.json +2946 -0
- package/dist/dtcg/print/print-construtivismo.light.tokens.json +2946 -0
- package/dist/dtcg/print/print-cordel.dark.tokens.json +2958 -0
- package/dist/dtcg/print/print-cordel.light.tokens.json +2954 -0
- package/dist/dtcg/print/print-dados-br.dark.tokens.json +2959 -0
- package/dist/dtcg/print/print-dados-br.light.tokens.json +2956 -0
- package/dist/dtcg/print/print-dashboard.dark.tokens.json +3015 -0
- package/dist/dtcg/print/print-dashboard.light.tokens.json +3007 -0
- package/dist/dtcg/print/print-diagrama-modernista.dark.tokens.json +2946 -0
- package/dist/dtcg/print/print-diagrama-modernista.light.tokens.json +2942 -0
- package/dist/dtcg/print/print-divulgacao.dark.tokens.json +2942 -0
- package/dist/dtcg/print/print-divulgacao.light.tokens.json +2938 -0
- package/dist/dtcg/print/print-fluxo-historico.dark.tokens.json +2944 -0
- package/dist/dtcg/print/print-fluxo-historico.light.tokens.json +2941 -0
- package/dist/dtcg/print/print-grade-holandesa.dark.tokens.json +2946 -0
- package/dist/dtcg/print/print-grade-holandesa.light.tokens.json +2942 -0
- package/dist/dtcg/print/print-graficos-1900.dark.tokens.json +2959 -0
- package/dist/dtcg/print/print-graficos-1900.light.tokens.json +2955 -0
- package/dist/dtcg/print/print-infografico-ilustrado.dark.tokens.json +2974 -0
- package/dist/dtcg/print/print-infografico-ilustrado.light.tokens.json +2970 -0
- package/dist/dtcg/print/print-isotype.dark.tokens.json +2946 -0
- package/dist/dtcg/print/print-isotype.light.tokens.json +2946 -0
- package/dist/dtcg/print/print-jornal-1959.dark.tokens.json +2944 -0
- package/dist/dtcg/print/print-jornal-1959.light.tokens.json +2944 -0
- package/dist/dtcg/print/print-jornal.dark.tokens.json +2958 -0
- package/dist/dtcg/print/print-jornal.light.tokens.json +2951 -0
- package/dist/dtcg/print/print-mapa-de-metro.dark.tokens.json +2946 -0
- package/dist/dtcg/print/print-mapa-de-metro.light.tokens.json +2946 -0
- package/dist/dtcg/print/print-memphis.dark.tokens.json +2942 -0
- package/dist/dtcg/print/print-memphis.light.tokens.json +2938 -0
- package/dist/dtcg/print/print-minimo-de-tinta.dark.tokens.json +2958 -0
- package/dist/dtcg/print/print-minimo-de-tinta.light.tokens.json +2951 -0
- package/dist/dtcg/print/print-papel-recortado.dark.tokens.json +2946 -0
- package/dist/dtcg/print/print-papel-recortado.light.tokens.json +2942 -0
- package/dist/dtcg/print/print-papel-salmao.dark.tokens.json +2944 -0
- package/dist/dtcg/print/print-papel-salmao.light.tokens.json +2941 -0
- package/dist/dtcg/print/print-pictogramas.dark.tokens.json +2946 -0
- package/dist/dtcg/print/print-pictogramas.light.tokens.json +2942 -0
- package/dist/dtcg/print/print-pop-art.dark.tokens.json +2942 -0
- package/dist/dtcg/print/print-pop-art.light.tokens.json +2938 -0
- package/dist/dtcg/print/print-prancheta-clara.dark.tokens.json +2960 -0
- package/dist/dtcg/print/print-prancheta-clara.light.tokens.json +2956 -0
- package/dist/dtcg/print/print-prancheta.dark.tokens.json +2956 -0
- package/dist/dtcg/print/print-prancheta.light.tokens.json +2960 -0
- package/dist/dtcg/print/print-proporcao-modular.dark.tokens.json +2945 -0
- package/dist/dtcg/print/print-proporcao-modular.light.tokens.json +2941 -0
- package/dist/dtcg/print/print-riso.dark.tokens.json +2960 -0
- package/dist/dtcg/print/print-riso.light.tokens.json +2956 -0
- package/dist/dtcg/print/print-semanario.dark.tokens.json +2944 -0
- package/dist/dtcg/print/print-semanario.light.tokens.json +2937 -0
- package/dist/dtcg/print/print-sinalizacao.dark.tokens.json +2946 -0
- package/dist/dtcg/print/print-sinalizacao.light.tokens.json +2942 -0
- package/dist/dtcg/print/print-suico.dark.tokens.json +2960 -0
- package/dist/dtcg/print/print-suico.light.tokens.json +2956 -0
- package/dist/dtcg/print/print-tropicalia.dark.tokens.json +2945 -0
- package/dist/dtcg/print/print-tropicalia.light.tokens.json +2941 -0
- package/dist/dtcg/print-aquarela.dark-high.tokens.json +3014 -0
- package/dist/dtcg/print-aquarela.dark.tokens.json +3014 -0
- package/dist/dtcg/print-aquarela.light-high.tokens.json +3014 -0
- package/dist/dtcg/print-aquarela.light.tokens.json +3009 -0
- package/dist/dtcg/print-art-nouveau.dark-high.tokens.json +2944 -0
- package/dist/dtcg/print-art-nouveau.dark.tokens.json +2944 -0
- package/dist/dtcg/print-art-nouveau.light-high.tokens.json +2944 -0
- package/dist/dtcg/print-art-nouveau.light.tokens.json +2944 -0
- package/dist/dtcg/print-atlas-oficial.dark-high.tokens.json +2945 -0
- package/dist/dtcg/print-atlas-oficial.dark.tokens.json +2945 -0
- package/dist/dtcg/print-atlas-oficial.light-high.tokens.json +2945 -0
- package/dist/dtcg/print-atlas-oficial.light.tokens.json +2945 -0
- package/dist/dtcg/print-azulejo-modernista.dark-high.tokens.json +2946 -0
- package/dist/dtcg/print-azulejo-modernista.dark.tokens.json +2946 -0
- package/dist/dtcg/print-azulejo-modernista.light-high.tokens.json +2946 -0
- package/dist/dtcg/print-azulejo-modernista.light.tokens.json +2946 -0
- package/dist/dtcg/print-bauhaus.dark-high.tokens.json +2946 -0
- package/dist/dtcg/print-bauhaus.dark.tokens.json +2946 -0
- package/dist/dtcg/print-bauhaus.light-high.tokens.json +2946 -0
- package/dist/dtcg/print-bauhaus.light.tokens.json +2942 -0
- package/dist/dtcg/print-blocos-coloridos.dark-high.tokens.json +2974 -0
- package/dist/dtcg/print-blocos-coloridos.dark.tokens.json +2974 -0
- package/dist/dtcg/print-blocos-coloridos.light-high.tokens.json +2974 -0
- package/dist/dtcg/print-blocos-coloridos.light.tokens.json +2967 -0
- package/dist/dtcg/print-brutalista.dark-high.tokens.json +2956 -0
- package/dist/dtcg/print-brutalista.dark.tokens.json +2956 -0
- package/dist/dtcg/print-brutalista.light-high.tokens.json +2956 -0
- package/dist/dtcg/print-brutalista.light.tokens.json +2956 -0
- package/dist/dtcg/print-caderno.dark-high.tokens.json +2958 -0
- package/dist/dtcg/print-caderno.dark.tokens.json +2958 -0
- package/dist/dtcg/print-caderno.light-high.tokens.json +2958 -0
- package/dist/dtcg/print-caderno.light.tokens.json +2954 -0
- package/dist/dtcg/print-cartao-postal.dark-high.tokens.json +2958 -0
- package/dist/dtcg/print-cartao-postal.dark.tokens.json +2958 -0
- package/dist/dtcg/print-cartao-postal.light-high.tokens.json +2958 -0
- package/dist/dtcg/print-cartao-postal.light.tokens.json +2954 -0
- package/dist/dtcg/print-cientifico.dark-high.tokens.json +2944 -0
- package/dist/dtcg/print-cientifico.dark.tokens.json +2944 -0
- package/dist/dtcg/print-cientifico.light-high.tokens.json +2944 -0
- package/dist/dtcg/print-cientifico.light.tokens.json +2944 -0
- package/dist/dtcg/print-concretismo.dark-high.tokens.json +2946 -0
- package/dist/dtcg/print-concretismo.dark.tokens.json +2946 -0
- package/dist/dtcg/print-concretismo.light-high.tokens.json +2946 -0
- package/dist/dtcg/print-concretismo.light.tokens.json +2942 -0
- package/dist/dtcg/print-construtivismo.dark-high.tokens.json +2946 -0
- package/dist/dtcg/print-construtivismo.dark.tokens.json +2946 -0
- package/dist/dtcg/print-construtivismo.light-high.tokens.json +2946 -0
- package/dist/dtcg/print-construtivismo.light.tokens.json +2946 -0
- package/dist/dtcg/print-cordel.dark-high.tokens.json +2958 -0
- package/dist/dtcg/print-cordel.dark.tokens.json +2958 -0
- package/dist/dtcg/print-cordel.light-high.tokens.json +2958 -0
- package/dist/dtcg/print-cordel.light.tokens.json +2954 -0
- package/dist/dtcg/print-dados-br.dark-high.tokens.json +2959 -0
- package/dist/dtcg/print-dados-br.dark.tokens.json +2959 -0
- package/dist/dtcg/print-dados-br.light-high.tokens.json +2959 -0
- package/dist/dtcg/print-dados-br.light.tokens.json +2956 -0
- package/dist/dtcg/print-dashboard.dark-high.tokens.json +3015 -0
- package/dist/dtcg/print-dashboard.dark.tokens.json +3015 -0
- package/dist/dtcg/print-dashboard.light-high.tokens.json +3015 -0
- package/dist/dtcg/print-dashboard.light.tokens.json +3007 -0
- package/dist/dtcg/print-diagrama-modernista.dark-high.tokens.json +2946 -0
- package/dist/dtcg/print-diagrama-modernista.dark.tokens.json +2946 -0
- package/dist/dtcg/print-diagrama-modernista.light-high.tokens.json +2946 -0
- package/dist/dtcg/print-diagrama-modernista.light.tokens.json +2942 -0
- package/dist/dtcg/print-divulgacao.dark-high.tokens.json +2942 -0
- package/dist/dtcg/print-divulgacao.dark.tokens.json +2942 -0
- package/dist/dtcg/print-divulgacao.light-high.tokens.json +2942 -0
- package/dist/dtcg/print-divulgacao.light.tokens.json +2938 -0
- package/dist/dtcg/print-fluxo-historico.dark-high.tokens.json +2944 -0
- package/dist/dtcg/print-fluxo-historico.dark.tokens.json +2944 -0
- package/dist/dtcg/print-fluxo-historico.light-high.tokens.json +2944 -0
- package/dist/dtcg/print-fluxo-historico.light.tokens.json +2941 -0
- package/dist/dtcg/print-grade-holandesa.dark-high.tokens.json +2946 -0
- package/dist/dtcg/print-grade-holandesa.dark.tokens.json +2946 -0
- package/dist/dtcg/print-grade-holandesa.light-high.tokens.json +2946 -0
- package/dist/dtcg/print-grade-holandesa.light.tokens.json +2942 -0
- package/dist/dtcg/print-graficos-1900.dark-high.tokens.json +2959 -0
- package/dist/dtcg/print-graficos-1900.dark.tokens.json +2959 -0
- package/dist/dtcg/print-graficos-1900.light-high.tokens.json +2959 -0
- package/dist/dtcg/print-graficos-1900.light.tokens.json +2955 -0
- package/dist/dtcg/print-infografico-ilustrado.dark-high.tokens.json +2974 -0
- package/dist/dtcg/print-infografico-ilustrado.dark.tokens.json +2974 -0
- package/dist/dtcg/print-infografico-ilustrado.light-high.tokens.json +2974 -0
- package/dist/dtcg/print-infografico-ilustrado.light.tokens.json +2970 -0
- package/dist/dtcg/print-isotype.dark-high.tokens.json +2946 -0
- package/dist/dtcg/print-isotype.dark.tokens.json +2946 -0
- package/dist/dtcg/print-isotype.light-high.tokens.json +2946 -0
- package/dist/dtcg/print-isotype.light.tokens.json +2946 -0
- package/dist/dtcg/print-jornal-1959.dark-high.tokens.json +2944 -0
- package/dist/dtcg/print-jornal-1959.dark.tokens.json +2944 -0
- package/dist/dtcg/print-jornal-1959.light-high.tokens.json +2944 -0
- package/dist/dtcg/print-jornal-1959.light.tokens.json +2944 -0
- package/dist/dtcg/print-jornal.dark-high.tokens.json +2958 -0
- package/dist/dtcg/print-jornal.dark.tokens.json +2958 -0
- package/dist/dtcg/print-jornal.light-high.tokens.json +2958 -0
- package/dist/dtcg/print-jornal.light.tokens.json +2951 -0
- package/dist/dtcg/print-mapa-de-metro.dark-high.tokens.json +2946 -0
- package/dist/dtcg/print-mapa-de-metro.dark.tokens.json +2946 -0
- package/dist/dtcg/print-mapa-de-metro.light-high.tokens.json +2946 -0
- package/dist/dtcg/print-mapa-de-metro.light.tokens.json +2946 -0
- package/dist/dtcg/print-memphis.dark-high.tokens.json +2942 -0
- package/dist/dtcg/print-memphis.dark.tokens.json +2942 -0
- package/dist/dtcg/print-memphis.light-high.tokens.json +2942 -0
- package/dist/dtcg/print-memphis.light.tokens.json +2938 -0
- package/dist/dtcg/print-minimo-de-tinta.dark-high.tokens.json +2958 -0
- package/dist/dtcg/print-minimo-de-tinta.dark.tokens.json +2958 -0
- package/dist/dtcg/print-minimo-de-tinta.light-high.tokens.json +2958 -0
- package/dist/dtcg/print-minimo-de-tinta.light.tokens.json +2951 -0
- package/dist/dtcg/print-papel-recortado.dark-high.tokens.json +2946 -0
- package/dist/dtcg/print-papel-recortado.dark.tokens.json +2946 -0
- package/dist/dtcg/print-papel-recortado.light-high.tokens.json +2946 -0
- package/dist/dtcg/print-papel-recortado.light.tokens.json +2942 -0
- package/dist/dtcg/print-papel-salmao.dark-high.tokens.json +2944 -0
- package/dist/dtcg/print-papel-salmao.dark.tokens.json +2944 -0
- package/dist/dtcg/print-papel-salmao.light-high.tokens.json +2944 -0
- package/dist/dtcg/print-papel-salmao.light.tokens.json +2941 -0
- package/dist/dtcg/print-pictogramas.dark-high.tokens.json +2946 -0
- package/dist/dtcg/print-pictogramas.dark.tokens.json +2946 -0
- package/dist/dtcg/print-pictogramas.light-high.tokens.json +2946 -0
- package/dist/dtcg/print-pictogramas.light.tokens.json +2942 -0
- package/dist/dtcg/print-pop-art.dark-high.tokens.json +2942 -0
- package/dist/dtcg/print-pop-art.dark.tokens.json +2942 -0
- package/dist/dtcg/print-pop-art.light-high.tokens.json +2942 -0
- package/dist/dtcg/print-pop-art.light.tokens.json +2938 -0
- package/dist/dtcg/print-prancheta-clara.dark-high.tokens.json +2960 -0
- package/dist/dtcg/print-prancheta-clara.dark.tokens.json +2960 -0
- package/dist/dtcg/print-prancheta-clara.light-high.tokens.json +2960 -0
- package/dist/dtcg/print-prancheta-clara.light.tokens.json +2956 -0
- package/dist/dtcg/print-prancheta.dark-high.tokens.json +2960 -0
- package/dist/dtcg/print-prancheta.dark.tokens.json +2956 -0
- package/dist/dtcg/print-prancheta.light-high.tokens.json +2960 -0
- package/dist/dtcg/print-prancheta.light.tokens.json +2960 -0
- package/dist/dtcg/print-proporcao-modular.dark-high.tokens.json +2945 -0
- package/dist/dtcg/print-proporcao-modular.dark.tokens.json +2945 -0
- package/dist/dtcg/print-proporcao-modular.light-high.tokens.json +2945 -0
- package/dist/dtcg/print-proporcao-modular.light.tokens.json +2941 -0
- package/dist/dtcg/print-riso.dark-high.tokens.json +2960 -0
- package/dist/dtcg/print-riso.dark.tokens.json +2960 -0
- package/dist/dtcg/print-riso.light-high.tokens.json +2960 -0
- package/dist/dtcg/print-riso.light.tokens.json +2956 -0
- package/dist/dtcg/print-semanario.dark-high.tokens.json +2944 -0
- package/dist/dtcg/print-semanario.dark.tokens.json +2944 -0
- package/dist/dtcg/print-semanario.light-high.tokens.json +2944 -0
- package/dist/dtcg/print-semanario.light.tokens.json +2937 -0
- package/dist/dtcg/print-sinalizacao.dark-high.tokens.json +2946 -0
- package/dist/dtcg/print-sinalizacao.dark.tokens.json +2946 -0
- package/dist/dtcg/print-sinalizacao.light-high.tokens.json +2946 -0
- package/dist/dtcg/print-sinalizacao.light.tokens.json +2942 -0
- package/dist/dtcg/print-suico.dark-high.tokens.json +2960 -0
- package/dist/dtcg/print-suico.dark.tokens.json +2960 -0
- package/dist/dtcg/print-suico.light-high.tokens.json +2960 -0
- package/dist/dtcg/print-suico.light.tokens.json +2956 -0
- package/dist/dtcg/print-tropicalia.dark-high.tokens.json +2945 -0
- package/dist/dtcg/print-tropicalia.dark.tokens.json +2945 -0
- package/dist/dtcg/print-tropicalia.light-high.tokens.json +2945 -0
- package/dist/dtcg/print-tropicalia.light.tokens.json +2941 -0
- package/dist/dtcg/tympan.dark-high.tokens.json +2971 -0
- package/dist/dtcg/tympan.dark.tokens.json +2971 -0
- package/dist/dtcg/tympan.light-high.tokens.json +2971 -0
- package/dist/dtcg/tympan.light.tokens.json +2971 -0
- package/dist/index.d.ts +642 -0
- package/dist/index.js +4873 -0
- package/dist/index.js.map +1 -0
- package/dist/print-aliases.d.ts +54 -0
- package/dist/print-aliases.js +71 -0
- package/dist/print-aliases.js.map +1 -0
- package/dist/print-themes/print-aquarela.css +1483 -0
- package/dist/print-themes/print-art-nouveau.css +1467 -0
- package/dist/print-themes/print-atlas-oficial.css +1467 -0
- package/dist/print-themes/print-azulejo-modernista.css +1467 -0
- package/dist/print-themes/print-bauhaus.css +1467 -0
- package/dist/print-themes/print-blocos-coloridos.css +1467 -0
- package/dist/print-themes/print-brutalista.css +1475 -0
- package/dist/print-themes/print-caderno.css +1483 -0
- package/dist/print-themes/print-cartao-postal.css +1483 -0
- package/dist/print-themes/print-cientifico.css +1467 -0
- package/dist/print-themes/print-concretismo.css +1467 -0
- package/dist/print-themes/print-construtivismo.css +1467 -0
- package/dist/print-themes/print-cordel.css +1483 -0
- package/dist/print-themes/print-dados-br.css +1475 -0
- package/dist/print-themes/print-dashboard.css +1475 -0
- package/dist/print-themes/print-diagrama-modernista.css +1467 -0
- package/dist/print-themes/print-divulgacao.css +1467 -0
- package/dist/print-themes/print-fluxo-historico.css +1475 -0
- package/dist/print-themes/print-grade-holandesa.css +1475 -0
- package/dist/print-themes/print-graficos-1900.css +1483 -0
- package/dist/print-themes/print-infografico-ilustrado.css +1467 -0
- package/dist/print-themes/print-isotype.css +1467 -0
- package/dist/print-themes/print-jornal-1959.css +1467 -0
- package/dist/print-themes/print-jornal.css +1475 -0
- package/dist/print-themes/print-mapa-de-metro.css +1467 -0
- package/dist/print-themes/print-memphis.css +1467 -0
- package/dist/print-themes/print-minimo-de-tinta.css +1475 -0
- package/dist/print-themes/print-papel-recortado.css +1467 -0
- package/dist/print-themes/print-papel-salmao.css +1467 -0
- package/dist/print-themes/print-pictogramas.css +1467 -0
- package/dist/print-themes/print-pop-art.css +1467 -0
- package/dist/print-themes/print-prancheta-clara.css +1483 -0
- package/dist/print-themes/print-prancheta.css +1483 -0
- package/dist/print-themes/print-proporcao-modular.css +1467 -0
- package/dist/print-themes/print-riso.css +1483 -0
- package/dist/print-themes/print-semanario.css +1467 -0
- package/dist/print-themes/print-sinalizacao.css +1467 -0
- package/dist/print-themes/print-suico.css +1475 -0
- package/dist/print-themes/print-tropicalia.css +1467 -0
- package/dist/print-themes.css +57215 -0
- package/dist/print-themes.json +236 -0
- package/dist/tokens.css +64416 -0
- package/dist/tokens.json +31449 -0
- package/dist/values.d.ts +14 -0
- package/dist/values.js +31454 -0
- package/package.json +67 -0
- package/src/base/motion.tokens.json +15 -0
- package/src/base/space.tokens.json +122 -0
- package/src/base/type.tokens.json +227 -0
- package/src/base/z.tokens.json +13 -0
- package/src/color.ts +239 -0
- package/src/dtcg.ts +102 -0
- package/src/flow.ts +130 -0
- package/src/index.ts +17 -0
- package/src/presets.ts +135 -0
- package/src/presets.ts.diff +26 -0
- package/src/print-aliases.ts +84 -0
- package/src/print-presets.ts +1611 -0
- package/src/print-themes.ts +404 -0
- package/src/scripts.ts +75 -0
- package/src/stylesheet.ts +238 -0
- package/src/theme.ts +553 -0
- package/src/theme.ts.rej +16 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,642 @@
|
|
|
1
|
+
import { PRINT_STYLE_ALIASES, PRINT_THEME_ALIASES, PRINT_THEME_PREFIX, PrintStyleAlias, resolvePrintThemeName, warnDeprecatedPrintId } from "./print-aliases.js";
|
|
2
|
+
//#region src/color.d.ts
|
|
3
|
+
/** Straight (non-premultiplied) sRGB colour, channels 0..1. */
|
|
4
|
+
export interface Rgba {
|
|
5
|
+
r: number;
|
|
6
|
+
g: number;
|
|
7
|
+
b: number;
|
|
8
|
+
a: number;
|
|
9
|
+
}
|
|
10
|
+
export interface Oklch {
|
|
11
|
+
l: number;
|
|
12
|
+
c: number;
|
|
13
|
+
h: number;
|
|
14
|
+
}
|
|
15
|
+
export declare function rgbToOklab({ r, g, b }: Rgba): {
|
|
16
|
+
L: number;
|
|
17
|
+
a: number;
|
|
18
|
+
b: number;
|
|
19
|
+
};
|
|
20
|
+
export declare function rgbToOklch(c: Rgba): Oklch;
|
|
21
|
+
/**
|
|
22
|
+
* OKLCH to sRGB. Out-of-gamut colours keep lightness and hue and lose chroma
|
|
23
|
+
* (binary search), which preserves the perceived tone of a ramp step.
|
|
24
|
+
*/
|
|
25
|
+
export declare function oklchToRgb({ l, c, h }: Oklch, alpha?: number): Rgba;
|
|
26
|
+
/** `#rrggbb` (alpha ignored). */
|
|
27
|
+
export declare function toHex(c: Rgba): string;
|
|
28
|
+
/** CSS serialisation: hex when opaque, `rgb(r g b / a)` otherwise. */
|
|
29
|
+
export declare function toCss(c: Rgba): string;
|
|
30
|
+
/** Parses `#rgb`, `#rrggbb`, `#rrggbbaa`, `rgb(r g b / a)` and `rgba(r, g, b, a)`. */
|
|
31
|
+
export declare function parseColor(input: string): Rgba;
|
|
32
|
+
/** Source-over compositing of `top` onto `bottom`. */
|
|
33
|
+
export declare function composite(top: Rgba, bottom: Rgba): Rgba;
|
|
34
|
+
/** Composites a stack given from top to bottom; the last layer should be opaque. */
|
|
35
|
+
export declare function flatten(stack: Rgba[]): Rgba;
|
|
36
|
+
/** WCAG 2.x relative luminance. */
|
|
37
|
+
export declare function luminance(c: Rgba): number;
|
|
38
|
+
/** WCAG 2.x contrast ratio (1..21) between two opaque colours. */
|
|
39
|
+
export declare function contrastRatio(a: Rgba, b: Rgba): number;
|
|
40
|
+
/**
|
|
41
|
+
* APCA lightness contrast Lc (text on background), implemented from the
|
|
42
|
+
* public description of the APCA-W3 0.0.98G constants. Informational only:
|
|
43
|
+
* WCAG 2.2 conformance is decided by `contrastRatio`.
|
|
44
|
+
*/
|
|
45
|
+
export declare function apcaContrast(text: Rgba, background: Rgba): number;
|
|
46
|
+
/** CIE L*a*b* (D65) from sRGB, via CIE XYZ. */
|
|
47
|
+
export declare function rgbToLab({ r, g, b }: Rgba): {
|
|
48
|
+
L: number;
|
|
49
|
+
a: number;
|
|
50
|
+
b: number;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* CIEDE2000 colour difference (ΔE00) between two opaque colours, implemented
|
|
54
|
+
* from the published formula (Sharma, Wu and Dalal, 2005). About 1 is a just
|
|
55
|
+
* noticeable difference; 10 or more reads as clearly different colours.
|
|
56
|
+
*/
|
|
57
|
+
export declare function deltaE2000(c1: Rgba, c2: Rgba): number;
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/theme.d.ts
|
|
60
|
+
export type Mode = 'light' | 'dark';
|
|
61
|
+
export type ContrastLevel = 'default' | 'high';
|
|
62
|
+
export type Density = 'compact' | 'default' | 'comfortable';
|
|
63
|
+
export interface Seed {
|
|
64
|
+
/** OKLCH hue in degrees. */
|
|
65
|
+
hue: number;
|
|
66
|
+
/** Peak OKLCH chroma of the ramp (0..~0.37). */
|
|
67
|
+
chroma: number;
|
|
68
|
+
}
|
|
69
|
+
export type SeedName = 'brand' | 'neutral' | 'danger' | 'warning' | 'success' | 'info';
|
|
70
|
+
/**
|
|
71
|
+
* Typographic roles a theme may set. They map onto the base font tokens the
|
|
72
|
+
* components read: `display` -> `--ty-font-serif` (headings h1 to h3 and KPI
|
|
73
|
+
* numbers), `body` -> `--ty-font-sans` (everything else), `mono` ->
|
|
74
|
+
* `--ty-font-mono` (identifiers). A role left out keeps the base stack.
|
|
75
|
+
*/
|
|
76
|
+
export type FontRole = 'display' | 'body' | 'mono' | 'sans' | 'serif';
|
|
77
|
+
/** CSS token of each font role (`--ty-font-<name>`). */
|
|
78
|
+
export declare const FONT_ROLE_TOKENS: Record<FontRole, 'serif' | 'sans' | 'mono'>;
|
|
79
|
+
/** Elevation treatment: blurred shadows, none (flat print), or a hard offset shadow without blur. */
|
|
80
|
+
export type Elevation = 'soft' | 'flat' | 'offset';
|
|
81
|
+
export interface ThemeConfig {
|
|
82
|
+
/** Identifier used in `data-ty-theme`. Lowercase letters, digits and dashes. */
|
|
83
|
+
name: string;
|
|
84
|
+
/** Human label (customizer, docs). */
|
|
85
|
+
label?: string;
|
|
86
|
+
seeds: Record<SeedName, Seed>;
|
|
87
|
+
/** Hues of the eight chart / categorical colours. */
|
|
88
|
+
chartHues?: number[];
|
|
89
|
+
/** Control radius in px; card and sheet radii derive from it. */
|
|
90
|
+
radius: number;
|
|
91
|
+
contrast: ContrastLevel;
|
|
92
|
+
/** Translucent blurred surfaces when true; opaque when false. */
|
|
93
|
+
glass: boolean;
|
|
94
|
+
/** Call-to-action fill: brand gradient or solid brand. */
|
|
95
|
+
cta: 'gradient' | 'solid';
|
|
96
|
+
/** Exact colours that override generated roles (CSS colour strings). */
|
|
97
|
+
pins?: Partial<Record<Mode, Partial<Record<RoleName, string>>>>;
|
|
98
|
+
/** Exact gradient stops for the call to action, per mode. */
|
|
99
|
+
ctaPins?: Partial<Record<Mode, string[]>>;
|
|
100
|
+
/** Font families per role, most preferred first, ending with a generic family. */
|
|
101
|
+
fonts?: Partial<Record<FontRole, string[]>>;
|
|
102
|
+
/**
|
|
103
|
+
* Stylesheet URL that loads the families of `fonts` (for example a Google
|
|
104
|
+
* Fonts css2 URL). The token CSS never fetches it; the host or
|
|
105
|
+
* ThemeProvider's `fonts` map adds the link.
|
|
106
|
+
*/
|
|
107
|
+
fontsUrl?: string;
|
|
108
|
+
/** Shadow treatment; `soft` when omitted. */
|
|
109
|
+
elevation?: Elevation;
|
|
110
|
+
/** Arbitrary string variables (e.g. for textures) */
|
|
111
|
+
strings?: Record<string, string>;
|
|
112
|
+
}
|
|
113
|
+
export declare const RAMP_STEPS: readonly [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
|
|
114
|
+
export type RampStep = (typeof RAMP_STEPS)[number];
|
|
115
|
+
/** 11-step ramp for a seed. */
|
|
116
|
+
export declare function generateRamp(seed: Seed): Record<RampStep, Rgba>;
|
|
117
|
+
/** Seed derived from an existing colour (keeps hue; chroma scaled to a ramp peak). */
|
|
118
|
+
export declare function seedFromColor(color: string, peakChroma?: number): Seed;
|
|
119
|
+
export declare const ROLE_NAMES: readonly ['bg', 'on-bg', 'surface', 'on-surface', 'surface-raised', 'on-surface-raised', 'surface-sunken', 'on-surface-sunken', 'surface-solid', 'surface-raised-solid', 'ink', 'ink-2', 'ink-3', 'line', 'line-soft', 'line-strong', 'input', 'focus-ring', 'brand', 'on-brand', 'brand-strong', 'brand-soft', 'on-brand-soft', 'cta-solid', 'on-cta', 'secondary', 'on-secondary', 'danger', 'on-danger', 'danger-soft', 'on-danger-soft', 'warning', 'on-warning', 'warning-soft', 'on-warning-soft', 'success', 'on-success', 'success-soft', 'on-success-soft', 'info', 'on-info', 'info-soft', 'on-info-soft', 'neutral', 'on-neutral', 'neutral-soft', 'on-neutral-soft', 'proof-proved', 'proof-proved-soft', 'proof-pending', 'proof-pending-soft', 'proof-refuted', 'proof-refuted-soft', 'proof-not-disclosed', 'proof-not-disclosed-soft', 'proof-none', 'proof-none-soft', 'actor-person', 'actor-person-soft', 'actor-agent', 'actor-agent-soft', 'actor-system', 'actor-system-soft', 'chart-1', 'chart-2', 'chart-3', 'chart-4', 'chart-5', 'chart-6', 'chart-7', 'chart-8', 'nav-bg', 'on-nav', 'nav-active', 'on-nav-active', 'nav-line', 'backdrop', 'ambient-1', 'ambient-2'];
|
|
120
|
+
export type RoleName = (typeof ROLE_NAMES)[number];
|
|
121
|
+
/** Design-direction names kept as aliases of the role model. */
|
|
122
|
+
export declare const ROLE_ALIASES: Record<string, RoleName>;
|
|
123
|
+
/** Contrast pairs every theme must satisfy (WCAG 2.2 AA). */
|
|
124
|
+
export interface ContrastPair {
|
|
125
|
+
fg: RoleName | `cta-stop-${number}` | 'focus-ring';
|
|
126
|
+
/** Background stack from top to bottom; translucent layers are composited. */
|
|
127
|
+
over: Array<RoleName | `cta-stop-${number}`>;
|
|
128
|
+
min: 4.5 | 3;
|
|
129
|
+
kind: 'text' | 'ui';
|
|
130
|
+
}
|
|
131
|
+
export declare function contrastPairs(ctaStops: number): ContrastPair[];
|
|
132
|
+
export interface ShadowLayer {
|
|
133
|
+
x: number;
|
|
134
|
+
y: number;
|
|
135
|
+
blur: number;
|
|
136
|
+
spread: number;
|
|
137
|
+
color: Rgba;
|
|
138
|
+
inset?: boolean;
|
|
139
|
+
}
|
|
140
|
+
export interface ContrastResult {
|
|
141
|
+
fg: string;
|
|
142
|
+
over: string[];
|
|
143
|
+
kind: 'text' | 'ui';
|
|
144
|
+
min: number;
|
|
145
|
+
ratio: number;
|
|
146
|
+
apca: number;
|
|
147
|
+
pass: boolean;
|
|
148
|
+
}
|
|
149
|
+
export interface ResolvedTheme {
|
|
150
|
+
name: string;
|
|
151
|
+
mode: Mode;
|
|
152
|
+
contrast: ContrastLevel;
|
|
153
|
+
colors: Record<string, Rgba>;
|
|
154
|
+
ramps: Record<SeedName, Record<RampStep, Rgba>>;
|
|
155
|
+
cta: {
|
|
156
|
+
angle: number;
|
|
157
|
+
stops: Rgba[];
|
|
158
|
+
};
|
|
159
|
+
shadows: Record<'sheet' | 'raised' | 'floating' | 'modal' | 'sheet-inset', ShadowLayer[]>;
|
|
160
|
+
/** Pixel dimensions (radius, glass blur, focus width). */
|
|
161
|
+
dimensions: Record<string, number>;
|
|
162
|
+
/** Font stacks keyed by token name (`serif`, `sans`, `mono`); empty when the theme keeps the base stacks. */
|
|
163
|
+
fonts: Partial<Record<'serif' | 'sans' | 'mono', string[]>>;
|
|
164
|
+
numbers: Record<string, number>;
|
|
165
|
+
strings?: Record<string, string>;
|
|
166
|
+
report: ContrastResult[];
|
|
167
|
+
}
|
|
168
|
+
/** Hues of the eight chart colours when a theme sets none. */
|
|
169
|
+
export declare const DEFAULT_CHART_HUES: number[];
|
|
170
|
+
/** Resolves one theme in one mode. */
|
|
171
|
+
export declare function resolveTheme(config: ThemeConfig, mode: Mode, contrastOverride?: ContrastLevel): ResolvedTheme;
|
|
172
|
+
export declare const DENSITIES: Record<Density, Record<string, number>>;
|
|
173
|
+
export declare function shadowToCss(layers: ShadowLayer[]): string;
|
|
174
|
+
export declare function gradientToCss(angle: number, stops: Rgba[]): string;
|
|
175
|
+
/** Ordered `[--ty-name, value]` pairs for one resolved theme. */
|
|
176
|
+
export declare function themeVariables(t: ResolvedTheme): Array<[string, string]>;
|
|
177
|
+
/**
|
|
178
|
+
* CSS `font-family` value of a family list: names with spaces or digits are
|
|
179
|
+
* quoted, keywords and single identifiers are not (the same rule as the
|
|
180
|
+
* Style Dictionary font-family transform of the build).
|
|
181
|
+
*/
|
|
182
|
+
export declare function fontStackToCss(families: readonly string[]): string;
|
|
183
|
+
/** Family list of a CSS `font-family` value (quotes removed). */
|
|
184
|
+
export declare function parseFontStack(stack: string): string[];
|
|
185
|
+
export declare function densityVariables(density: Density): Array<[string, string]>;
|
|
186
|
+
//#endregion
|
|
187
|
+
//#region src/presets.d.ts
|
|
188
|
+
/**
|
|
189
|
+
* Default theme. Generated from seeds, with the exact colours of design
|
|
190
|
+
* direction §2.3 pinned so the product matches the approved direction.
|
|
191
|
+
*/
|
|
192
|
+
export declare const tympanPreset: ThemeConfig;
|
|
193
|
+
/** Brand-free grey theme for embedding and white-label use. Fully generated. */
|
|
194
|
+
export declare const neutralPreset: ThemeConfig;
|
|
195
|
+
/**
|
|
196
|
+
* The Fakhir research platform's look, selected by name
|
|
197
|
+
* (`data-ty-theme="fakhir"`). Today it carries the default theme's values; it
|
|
198
|
+
* is a separate preset so that app keeps its look if the default changes.
|
|
199
|
+
*/
|
|
200
|
+
export declare const fakhirPreset: ThemeConfig;
|
|
201
|
+
/** Default hues with high contrast, opaque surfaces and a thicker focus ring. */
|
|
202
|
+
export declare const highContrastPreset: ThemeConfig;
|
|
203
|
+
export declare const astrlabePreset: ThemeConfig;
|
|
204
|
+
export declare const presets: readonly ThemeConfig[];
|
|
205
|
+
export declare const DEFAULT_THEME = "tympan";
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region src/dtcg.d.ts
|
|
208
|
+
export interface DtcgColor {
|
|
209
|
+
colorSpace: 'srgb';
|
|
210
|
+
components: [number, number, number];
|
|
211
|
+
alpha?: number;
|
|
212
|
+
hex: string;
|
|
213
|
+
}
|
|
214
|
+
type Tree = {
|
|
215
|
+
[key: string]: Tree | unknown;
|
|
216
|
+
};
|
|
217
|
+
export declare function toDtcgColor(c: Rgba): DtcgColor;
|
|
218
|
+
export declare function fromDtcgColor(v: DtcgColor | string): Rgba;
|
|
219
|
+
/** DTCG tree for one resolved theme and mode. */
|
|
220
|
+
export declare function themeToDtcg(t: ResolvedTheme): Tree;
|
|
221
|
+
/** DTCG tree for one density step. */
|
|
222
|
+
export declare function densityToDtcg(density: Density): Tree;
|
|
223
|
+
//#endregion
|
|
224
|
+
//#region src/stylesheet.d.ts
|
|
225
|
+
export type VarList = Array<[string, string]>;
|
|
226
|
+
export interface ThemeVars {
|
|
227
|
+
name: string;
|
|
228
|
+
light: VarList;
|
|
229
|
+
dark: VarList;
|
|
230
|
+
/** Values used under `prefers-contrast: more` (omitted for themes that are already high contrast). */
|
|
231
|
+
highLight?: VarList;
|
|
232
|
+
highDark?: VarList;
|
|
233
|
+
}
|
|
234
|
+
export interface StylesheetInput {
|
|
235
|
+
/** Theme-independent tokens (space, type, motion, z, layout). */
|
|
236
|
+
base?: VarList;
|
|
237
|
+
themes: ThemeVars[];
|
|
238
|
+
/** Theme applied to `:root` without attributes. `null` scopes every theme to its attribute. */
|
|
239
|
+
defaultTheme?: string | null;
|
|
240
|
+
densities?: Partial<Record<Density, VarList>>;
|
|
241
|
+
/**
|
|
242
|
+
* Component tokens that reference theme roles through var(). Declared on
|
|
243
|
+
* every theme and mode scope so a nested theme re-resolves them.
|
|
244
|
+
*/
|
|
245
|
+
components?: VarList;
|
|
246
|
+
/** Extra component rules emitted after the component tokens (e.g. the flow tone mapping). */
|
|
247
|
+
componentRules?: string;
|
|
248
|
+
/** Cascade layer; `null` for none. */
|
|
249
|
+
layer?: string | null;
|
|
250
|
+
banner?: string;
|
|
251
|
+
/**
|
|
252
|
+
* Emit the user-preference blocks (reduced motion and transparency,
|
|
253
|
+
* forced colours). Default true; add-on theme sheets loaded after the main
|
|
254
|
+
* token sheet set it to false because those blocks already apply to every theme.
|
|
255
|
+
*/
|
|
256
|
+
preferences?: boolean;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Selectors for one theme. The attributes may sit on the same element or on
|
|
260
|
+
* an ancestor: `data-ty-theme` picks the theme, `data-ty-mode` forces light or
|
|
261
|
+
* dark (absent or `system` follows `prefers-color-scheme`).
|
|
262
|
+
*/
|
|
263
|
+
export declare function themeSelectors(name: string, isDefault: boolean): {
|
|
264
|
+
light: string[];
|
|
265
|
+
systemDark: string[];
|
|
266
|
+
dark: string[];
|
|
267
|
+
explicitLight: string[];
|
|
268
|
+
};
|
|
269
|
+
/** Forced colours: roles map to system colours so boundaries and state stay visible. */
|
|
270
|
+
export declare const FORCED_COLORS_VARS: VarList;
|
|
271
|
+
/** Reduced transparency (and no backdrop-filter support): opaque surfaces, no blur, no ambient. */
|
|
272
|
+
export declare const OPAQUE_VARS: VarList;
|
|
273
|
+
export declare function buildStylesheet(input: StylesheetInput): string;
|
|
274
|
+
/** Generator output for one theme config, as variable lists. */
|
|
275
|
+
export declare function themeVarsFor(config: ThemeConfig): ThemeVars;
|
|
276
|
+
export interface ThemeCssOptions {
|
|
277
|
+
/** Make this theme the `:root` default (for a standalone stylesheet). */
|
|
278
|
+
asDefault?: boolean;
|
|
279
|
+
/** Include the density blocks. */
|
|
280
|
+
densities?: boolean;
|
|
281
|
+
layer?: string | null;
|
|
282
|
+
}
|
|
283
|
+
/** CSS for one theme config, straight from the generator (used by the customizer). */
|
|
284
|
+
export declare function generateThemeCss(config: ThemeConfig, options?: ThemeCssOptions): string;
|
|
285
|
+
/** Variable lists of every built-in preset. */
|
|
286
|
+
export declare function presetThemeVars(list?: readonly ThemeConfig[]): ThemeVars[];
|
|
287
|
+
/**
|
|
288
|
+
* The opt-in stylesheet of the print themes (`print-themes.css`): every
|
|
289
|
+
* listed theme scoped to its `data-ty-theme` attribute, with its high-contrast
|
|
290
|
+
* variant, and no user-preference blocks (the main token sheet has them).
|
|
291
|
+
* Load it after `tokens.css`.
|
|
292
|
+
*/
|
|
293
|
+
export declare function generatePrintThemesCss(list?: readonly ThemeConfig[], options?: {
|
|
294
|
+
layer?: string | null;
|
|
295
|
+
banner?: string;
|
|
296
|
+
themes?: ThemeVars[];
|
|
297
|
+
}): string;
|
|
298
|
+
//#endregion
|
|
299
|
+
//#region src/flow.d.ts
|
|
300
|
+
export type FlowToken = {
|
|
301
|
+
type: 'color';
|
|
302
|
+
ref: string;
|
|
303
|
+
mix?: number;
|
|
304
|
+
} | {
|
|
305
|
+
type: 'dimension';
|
|
306
|
+
ref: string;
|
|
307
|
+
} | {
|
|
308
|
+
type: 'dimension';
|
|
309
|
+
px: number;
|
|
310
|
+
};
|
|
311
|
+
export declare const FLOW_TONES: readonly ['categorical-1', 'categorical-2', 'categorical-3', 'categorical-4', 'categorical-5', 'categorical-6', 'categorical-7', 'categorical-8', 'neutral'];
|
|
312
|
+
export type FlowTone = (typeof FLOW_TONES)[number];
|
|
313
|
+
/** Every canvas token, in stylesheet order (name without the `--ty-flow-` prefix). */
|
|
314
|
+
export declare const FLOW_TOKENS: ReadonlyArray<readonly [string, FlowToken]>;
|
|
315
|
+
export declare const flowCssName: (name: string) => string;
|
|
316
|
+
/** CSS value of one canvas token. */
|
|
317
|
+
export declare function flowTokenCss(token: FlowToken): string;
|
|
318
|
+
/** Ordered `[--ty-flow-name, value]` pairs (the generator's direct serialisation). */
|
|
319
|
+
export declare function flowVariables(): Array<[string, string]>;
|
|
320
|
+
/** DTCG tree of the canvas tokens; colour and radius values alias the theme tree. */
|
|
321
|
+
export declare function flowToDtcg(): Record<string, unknown>;
|
|
322
|
+
/**
|
|
323
|
+
* The `[data-tone]` mapping: a tone name on any element selects its four parts
|
|
324
|
+
* as `--ty-flow-tone`, `-ink`, `-soft` and `-text`.
|
|
325
|
+
*/
|
|
326
|
+
export declare function flowToneRules(): string;
|
|
327
|
+
//#endregion
|
|
328
|
+
//#region src/print-presets.d.ts
|
|
329
|
+
export type RenderizadorGrafico = 'limpo' | 'mao' | 'isotype' | 'gravura' | 'prancheta' | 'aquarela' | 'riso' | 'pontos';
|
|
330
|
+
export type MarcaProva = 'pilula' | 'carimbo' | 'circulo' | 'sublinhado' | 'barra' | 'etiqueta' | 'formas' | 'ponto';
|
|
331
|
+
export type EstadoProva = 'sustentada' | 'refutada' | 'nao-da-para-afirmar' | 'pendente' | 'sem-dado' | 'nao-testada';
|
|
332
|
+
export declare const ESTADOS_PROVA: readonly EstadoProva[];
|
|
333
|
+
/** The word printed for each proof state (always visible, whatever the mark's shape). */
|
|
334
|
+
export declare const ROTULOS_PROVA: Record<EstadoProva, string>;
|
|
335
|
+
export interface PrintFontes {
|
|
336
|
+
titulo: string;
|
|
337
|
+
corpo: string;
|
|
338
|
+
numero: string;
|
|
339
|
+
rotulo: string;
|
|
340
|
+
anotacao: string;
|
|
341
|
+
mono: string;
|
|
342
|
+
}
|
|
343
|
+
export interface PrintCores {
|
|
344
|
+
papel: string;
|
|
345
|
+
tinta: string;
|
|
346
|
+
tinta2: string;
|
|
347
|
+
tinta3: string;
|
|
348
|
+
linha: string;
|
|
349
|
+
destaque: string;
|
|
350
|
+
destaque2: string;
|
|
351
|
+
marcaTexto: string;
|
|
352
|
+
contexto: string;
|
|
353
|
+
prova: Record<EstadoProva, string>;
|
|
354
|
+
/** Colours of page ornaments only (frames, tiles, waves); never data. Up to four. */
|
|
355
|
+
ornamento?: string[];
|
|
356
|
+
}
|
|
357
|
+
/** Partial colours: any role, and any subset of the proof states. */
|
|
358
|
+
export type PrintCoresParciais = Partial<Omit<PrintCores, 'prova'>> & {
|
|
359
|
+
prova?: Partial<Record<EstadoProva, string>>;
|
|
360
|
+
};
|
|
361
|
+
export type TexturaPapel = 'nenhuma' | 'grao' | 'pauta' | 'milimetrado' | 'fibra';
|
|
362
|
+
export type Hachura = 'nenhuma' | 'simples' | 'cruzada' | 'pontilhada' | 'goiva';
|
|
363
|
+
/**
|
|
364
|
+
* Page structure of a style (addition to the contract, see CONTRATO.md):
|
|
365
|
+
* how panels are framed, how the panel letter is drawn, where notes go, how a
|
|
366
|
+
* figure is marked and how panel labels are cased.
|
|
367
|
+
*/
|
|
368
|
+
export interface PrintEstrutura {
|
|
369
|
+
/** Panel frame: top rule, heavy top rule, box, heavy box, drafting board, soft card, flat title band or none. */
|
|
370
|
+
painel: 'fio' | 'fio-grosso' | 'caixa' | 'caixa-grossa' | 'prancha' | 'cartao' | 'bloco' | 'nenhum' | 'dossie' | 'placa';
|
|
371
|
+
/** Panel letter: plain, in a filled square, in a circle, in parentheses. */
|
|
372
|
+
rotulo: 'letra' | 'quadrado' | 'circulo' | 'parenteses';
|
|
373
|
+
/** Casing of panel labels and eyebrows. */
|
|
374
|
+
rotuloCaixa: 'alta' | 'versalete' | 'normal';
|
|
375
|
+
/** Annotations inside the flow, or as notes in the outer margin (minimo-de-tinta). */
|
|
376
|
+
notas: 'dentro' | 'margem';
|
|
377
|
+
/** Figure mark: none; a short bar and rule on top (semanario); range frame, no grid (minimo-de-tinta). */
|
|
378
|
+
figura: 'simples' | 'barra-topo' | 'amplitude';
|
|
379
|
+
/** Titles and labels in lower case (diagrama-modernista, concrete design). */
|
|
380
|
+
minusculas: boolean;
|
|
381
|
+
/** Bar charts drawn as horizontal bars (default) or vertical columns. Lengths come from the data either way. */
|
|
382
|
+
barras?: 'horizontal' | 'vertical';
|
|
383
|
+
/** Page ornament drawn in the margins, outside the type area (never over data). */
|
|
384
|
+
moldura?: Moldura;
|
|
385
|
+
/** Running head: plain text (default), a full-width band (mapa-de-metro, constructivism) or a tag with an arrow (signage). */
|
|
386
|
+
cabeco?: 'texto' | 'faixa' | 'etiqueta';
|
|
387
|
+
/**
|
|
388
|
+
* Title treatment: cut-paper word blocks, a band with a hard shadow, an offset colour shadow, the ornament colours;
|
|
389
|
+
* italic (minimo-de-tinta), centred capitals with wide spacing (graficos-1900), centred italic (fluxo-historico), heavier and larger
|
|
390
|
+
* (constructivism), set from the third column (Swiss grid), or underlined by hand (caderno).
|
|
391
|
+
*/
|
|
392
|
+
tituloEstilo?: 'normal' | 'recorte' | 'faixa' | 'sombra' | 'arcoiris' | 'italico' | 'centro' | 'centro-italico' | 'pesado' | 'coluna3' | 'sublinhado';
|
|
393
|
+
/** Fill of the square or round panel letter. */
|
|
394
|
+
corRotulo?: 'destaque' | 'destaque2' | 'tinta' | 'marcaTexto' | 'sustentada' | 'refutada';
|
|
395
|
+
/** Bars get an ink outline (Memphis, pop art). */
|
|
396
|
+
contornoBarra?: boolean;
|
|
397
|
+
/**
|
|
398
|
+
* Signature shape of the comparison chart (G1 of the style audit). Default: 'barras' ('colunas' when
|
|
399
|
+
* `barras` is 'vertical'). Every shape keeps position and size from the data; see FormaGrafico.
|
|
400
|
+
*/
|
|
401
|
+
forma?: FormaGrafico;
|
|
402
|
+
/** A line at the cut between the two columns of each group: dashed (minimo-de-tinta, infografico-ilustrado) or solid (diagrama-modernista). */
|
|
403
|
+
linhaCorte?: 'tracejada' | 'cheia';
|
|
404
|
+
/** A marker on the end of each column (diagrama-modernista: a circle). */
|
|
405
|
+
marcador?: 'circulo';
|
|
406
|
+
/** Thin columns (minimo-de-tinta). */
|
|
407
|
+
colunasFinas?: boolean;
|
|
408
|
+
/**
|
|
409
|
+
* Callouts drawn inside the chart (G3): numbered list under the plot (default), handwritten notes with an
|
|
410
|
+
* arrow and the value circled (caderno), speech balloons (divulgação, infografico-ilustrado) or text with a leader line (papel-salmao).
|
|
411
|
+
*/
|
|
412
|
+
chamadas?: 'numeradas' | 'manuscritas' | 'baloes' | 'guia';
|
|
413
|
+
/** Two figures of one panel stacked (default) or side by side as small multiples. */
|
|
414
|
+
multiplos?: 'empilhados' | 'lado-a-lado';
|
|
415
|
+
/** A letter (A, B…) on each small multiple (scientific figure). */
|
|
416
|
+
letraMultiplo?: boolean;
|
|
417
|
+
/** Emblem beside the spread title: decoration in ornament or ink colours, never data. */
|
|
418
|
+
emblema?: Emblema;
|
|
419
|
+
/** Panel fills: a pale tint (pictogramas), alternating tints (diagrama-modernista, proporcao-modular, blocos-coloridos, divulgação) or halftone dots (riso). */
|
|
420
|
+
fundoPainel?: 'claro' | 'alternado' | 'pontilhado';
|
|
421
|
+
/** The verdict panel (e): a dark block (mapa-de-metro, sinalizacao, concretism, blocos-coloridos) or a block in the highlighter tint (riso). */
|
|
422
|
+
veredito?: 'bloco-escuro' | 'bloco-cor';
|
|
423
|
+
/** The linking paragraph under a and b: a highlight band (bauhaus), a dark block (constructivism), a thick bar (concretism, proporcao-modular) or a "você sabia?" tag (divulgação). */
|
|
424
|
+
costura?: 'faixa' | 'bloco-escuro' | 'barra' | 'selo';
|
|
425
|
+
/** Headline of the method figures: plain, on a band, on a tilted band (constructivism), with a magnifier (divulgação). */
|
|
426
|
+
manchete?: 'texto' | 'faixa' | 'diagonal' | 'lupa';
|
|
427
|
+
/** The trace of a number (g): a list (default), a metro line with stations (mapa-de-metro) or signage plates (sinalizacao). */
|
|
428
|
+
rastro?: 'lista' | 'metro' | 'placa';
|
|
429
|
+
/** Notes of a figure under it (default) or in a column beside it headed "Leia assim" (Dados BR). */
|
|
430
|
+
notasFigura?: 'dentro' | 'coluna';
|
|
431
|
+
/** The key numbers (b) marked with the highlighter (caderno). */
|
|
432
|
+
numerosMarcados?: boolean;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Emblems drawn beside a spread title (tympan-print Emblema). `'modulor'` is
|
|
436
|
+
* the deprecated name of `'figura-modular'`, still drawn the same; it will be
|
|
437
|
+
* removed with the style aliases (see PRINT_STYLE_ALIASES).
|
|
438
|
+
*/
|
|
439
|
+
export type Emblema = 'pictogramas' | 'formas' | 'circulo-bicolor' | 'figura-modular' | 'casa' | 'lupa' | 'predios' | 'modulor';
|
|
440
|
+
/**
|
|
441
|
+
* Shapes of the comparison chart. Lengths, heights and thicknesses always come from the data through one
|
|
442
|
+
* linear scale per figure; the shape only decides how the two series are laid out.
|
|
443
|
+
* - 'barras': horizontal bars from zero. 'colunas': vertical columns.
|
|
444
|
+
* - 'eixo-central': the cut is the axis; the series below the cut grows to the left, the one above to the right.
|
|
445
|
+
* - 'ziguezague': a bar longer than one line folds back and forth (graficos-1900); total length = value.
|
|
446
|
+
* - 'fluxo': bands whose thickness is the value, splitting at the cut (fluxo-historico).
|
|
447
|
+
* - 'predios': columns drawn as buildings (height = value; windows are texture only).
|
|
448
|
+
* - 'cartoes': one card per row with the numbers written large and mini columns on a shared scale.
|
|
449
|
+
*/
|
|
450
|
+
export type FormaGrafico = 'barras' | 'colunas' | 'eixo-central' | 'ziguezague' | 'fluxo' | 'predios' | 'cartoes';
|
|
451
|
+
/** Page ornaments (optional, CONTRATO §1). */
|
|
452
|
+
export type Moldura = 'nenhuma' | 'dupla' | 'regua' | 'azulejo' | 'ondas' | 'ramos' | 'recortes' | 'reticula' | 'memphis' | 'diagonais' | 'formas' | 'quartos';
|
|
453
|
+
export interface PrintStyle {
|
|
454
|
+
/** Stable id, e.g. 'jornal'. */
|
|
455
|
+
name: string;
|
|
456
|
+
/** Human label, e.g. "Editorial de jornal". */
|
|
457
|
+
label: string;
|
|
458
|
+
/** What the style reproduces or interprets. */
|
|
459
|
+
referencia: string;
|
|
460
|
+
/** CSS font stacks. */
|
|
461
|
+
fontes: PrintFontes;
|
|
462
|
+
/** Google Fonts css2 family specs (`Family Name:axes@values`); empty for system fonts only. */
|
|
463
|
+
googleFonts: string[];
|
|
464
|
+
cor: PrintCores;
|
|
465
|
+
papel: {
|
|
466
|
+
textura: TexturaPapel;
|
|
467
|
+
intensidade: number;
|
|
468
|
+
};
|
|
469
|
+
/** Stroke width in mm, tremor 0..2 (0 = ruled), hatching of the second series. */
|
|
470
|
+
traco: {
|
|
471
|
+
largura: number;
|
|
472
|
+
tremor: number;
|
|
473
|
+
hachura: Hachura;
|
|
474
|
+
};
|
|
475
|
+
grafico: RenderizadorGrafico;
|
|
476
|
+
marcaProva: MarcaProva;
|
|
477
|
+
/** Corner radius in mm; 0 for square styles. */
|
|
478
|
+
raio: number;
|
|
479
|
+
/** Chapter and spread titles in capitals. */
|
|
480
|
+
caixaAlta: boolean;
|
|
481
|
+
/** Adjustments for black and white print, applied after the grey conversion. */
|
|
482
|
+
pb: PrintCoresParciais;
|
|
483
|
+
estrutura: PrintEstrutura;
|
|
484
|
+
/**
|
|
485
|
+
* Brand marks in colour (default) or in their official one-ink version,
|
|
486
|
+
* for styles whose technique is one or two inks (woodcut, risograph,
|
|
487
|
+
* cyanotype). The lakebrasil mark is never recoloured; the Datatech mark
|
|
488
|
+
* has approved variations (ink, duotone, per style), see LogoDatatech.
|
|
489
|
+
*/
|
|
490
|
+
logo?: 'cor' | 'mono';
|
|
491
|
+
}
|
|
492
|
+
/** Any token of a style may be overridden by the editor (partial, nested). */
|
|
493
|
+
export interface PrintStyleOverrides {
|
|
494
|
+
label?: string;
|
|
495
|
+
fontes?: Partial<PrintFontes>;
|
|
496
|
+
googleFonts?: string[];
|
|
497
|
+
cor?: PrintCoresParciais;
|
|
498
|
+
papel?: Partial<PrintStyle['papel']>;
|
|
499
|
+
traco?: Partial<PrintStyle['traco']>;
|
|
500
|
+
grafico?: RenderizadorGrafico;
|
|
501
|
+
marcaProva?: MarcaProva;
|
|
502
|
+
raio?: number;
|
|
503
|
+
caixaAlta?: boolean;
|
|
504
|
+
pb?: PrintCoresParciais;
|
|
505
|
+
estrutura?: Partial<PrintEstrutura>;
|
|
506
|
+
logo?: 'cor' | 'mono';
|
|
507
|
+
}
|
|
508
|
+
/** The 39 book styles, by name. */
|
|
509
|
+
export declare const printPresets: {
|
|
510
|
+
dashboard: PrintStyle;
|
|
511
|
+
'graficos-1900': PrintStyle;
|
|
512
|
+
'cartao-postal': PrintStyle;
|
|
513
|
+
caderno: PrintStyle;
|
|
514
|
+
isotype: PrintStyle;
|
|
515
|
+
cordel: PrintStyle;
|
|
516
|
+
riso: PrintStyle;
|
|
517
|
+
jornal: PrintStyle;
|
|
518
|
+
prancheta: PrintStyle;
|
|
519
|
+
'prancheta-clara': PrintStyle;
|
|
520
|
+
aquarela: PrintStyle;
|
|
521
|
+
'minimo-de-tinta': PrintStyle;
|
|
522
|
+
suico: PrintStyle;
|
|
523
|
+
concretismo: PrintStyle;
|
|
524
|
+
semanario: PrintStyle;
|
|
525
|
+
'infografico-ilustrado': PrintStyle;
|
|
526
|
+
'diagrama-modernista': PrintStyle;
|
|
527
|
+
'papel-salmao': PrintStyle;
|
|
528
|
+
'dados-br': PrintStyle;
|
|
529
|
+
'fluxo-historico': PrintStyle;
|
|
530
|
+
'blocos-coloridos': PrintStyle;
|
|
531
|
+
construtivismo: PrintStyle;
|
|
532
|
+
bauhaus: PrintStyle;
|
|
533
|
+
brutalista: PrintStyle;
|
|
534
|
+
divulgacao: PrintStyle;
|
|
535
|
+
'proporcao-modular': PrintStyle;
|
|
536
|
+
sinalizacao: PrintStyle;
|
|
537
|
+
pictogramas: PrintStyle;
|
|
538
|
+
'mapa-de-metro': PrintStyle;
|
|
539
|
+
'jornal-1959': PrintStyle;
|
|
540
|
+
'azulejo-modernista': PrintStyle;
|
|
541
|
+
tropicalia: PrintStyle;
|
|
542
|
+
'atlas-oficial': PrintStyle;
|
|
543
|
+
'grade-holandesa': PrintStyle;
|
|
544
|
+
'papel-recortado': PrintStyle;
|
|
545
|
+
'pop-art': PrintStyle;
|
|
546
|
+
cientifico: PrintStyle;
|
|
547
|
+
'art-nouveau': PrintStyle;
|
|
548
|
+
memphis: PrintStyle;
|
|
549
|
+
};
|
|
550
|
+
export type PrintPresetName = keyof typeof printPresets;
|
|
551
|
+
export declare const PRINT_PRESET_NAMES: PrintPresetName[];
|
|
552
|
+
export declare const DEFAULT_PRINT_STYLE: PrintPresetName;
|
|
553
|
+
/** Any id a style can be named by: a current name or a deprecated alias (PRINT_STYLE_ALIASES). */
|
|
554
|
+
export type PrintStyleId = PrintPresetName | PrintStyleAlias;
|
|
555
|
+
/**
|
|
556
|
+
* The current name of a style id: a current name is returned as is, a
|
|
557
|
+
* deprecated alias is mapped (with a one-time development warning), anything
|
|
558
|
+
* else gives `undefined`.
|
|
559
|
+
*/
|
|
560
|
+
export declare function resolvePrintStyleName(id: string): PrintPresetName | undefined;
|
|
561
|
+
/** The preset of a style id (current or deprecated); throws on an unknown id. */
|
|
562
|
+
export declare function printPresetById(id: string): PrintStyle;
|
|
563
|
+
/** A style with the editor's overrides applied (nested, partial). */
|
|
564
|
+
export declare function mergePrintStyle(style: PrintStyle, overrides?: PrintStyleOverrides): PrintStyle;
|
|
565
|
+
/** The grey with the same WCAG relative luminance, so every contrast ratio survives the conversion. */
|
|
566
|
+
export declare function toGrey(color: string): string;
|
|
567
|
+
/** Colours for black and white print: every role in grey, then the style's own `pb` adjustments. */
|
|
568
|
+
export declare function printStyleCoresPb(style: PrintStyle): PrintCores;
|
|
569
|
+
export interface PrintCssOptions {
|
|
570
|
+
/** Black and white variant. */
|
|
571
|
+
pb?: boolean;
|
|
572
|
+
/** Editor overrides of any token. */
|
|
573
|
+
overrides?: PrintStyleOverrides;
|
|
574
|
+
/** Selector to scope the properties to; defaults to `[data-ty-print-style="<name>"]`. */
|
|
575
|
+
seletor?: string;
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* The style as it will print: overrides applied, then (for `pb`) the grey
|
|
579
|
+
* conversion. Takes a preset or a style id; a deprecated id resolves to its
|
|
580
|
+
* current style (`resolvePrintStyle('economist').name === 'semanario'`).
|
|
581
|
+
*/
|
|
582
|
+
export declare function resolvePrintStyle(style: PrintStyle | PrintStyleId, options?: Omit<PrintCssOptions, 'seletor'>): PrintStyle;
|
|
583
|
+
/** Custom properties of a resolved style, in a stable order. */
|
|
584
|
+
export declare function printStyleVariables(style: PrintStyle): Array<[string, string]>;
|
|
585
|
+
/**
|
|
586
|
+
* CSS custom properties (`--ty-print-*`) of a style on
|
|
587
|
+
* `[data-ty-print-style="<name>"]`, with the editor's overrides and, when
|
|
588
|
+
* `pb` is set, the black and white colours.
|
|
589
|
+
*/
|
|
590
|
+
export declare function printStyleToCss(style: PrintStyle, options?: PrintCssOptions): string;
|
|
591
|
+
/** Google Fonts css2 URL for a style's families (null when it uses system fonts only). */
|
|
592
|
+
export declare function googleFontsUrl(style: Pick<PrintStyle, 'googleFonts'>): string | null;
|
|
593
|
+
/** True when the paper is dark (the brand seal and logo then use the light mono version). */
|
|
594
|
+
export declare function papelEscuro(style: Pick<PrintStyle, 'cor'>): boolean;
|
|
595
|
+
//#endregion
|
|
596
|
+
//#region src/print-themes.d.ts
|
|
597
|
+
/** Per-style adjustments where the derivation misjudges; merged over the derived config. */
|
|
598
|
+
export interface PrintThemeOverride {
|
|
599
|
+
/** Brand colour to use instead of the derived one. */
|
|
600
|
+
brand?: string;
|
|
601
|
+
glass?: boolean;
|
|
602
|
+
cta?: ThemeConfig['cta'];
|
|
603
|
+
elevation?: ThemeConfig['elevation'];
|
|
604
|
+
/** Radius in px. */
|
|
605
|
+
radius?: number;
|
|
606
|
+
/** Extra pins per mode (applied before the contrast check, dropped if they fail like any pin). */
|
|
607
|
+
pins?: ThemeConfig['pins'];
|
|
608
|
+
}
|
|
609
|
+
/**
|
|
610
|
+
* Where the derivation reads a style differently from its tradition. Kept
|
|
611
|
+
* short on purpose: every entry is a judgement the data cannot express.
|
|
612
|
+
*/
|
|
613
|
+
export declare const PRINT_THEME_OVERRIDES: Partial<Record<PrintPresetName, PrintThemeOverride>>;
|
|
614
|
+
/** The colour moved along OKLCH lightness (hue and chroma kept) until it reaches `min` against `over`. */
|
|
615
|
+
export declare function legibleOn(colour: string, over: string, min?: number): string;
|
|
616
|
+
/**
|
|
617
|
+
* The accent that represents a style, before any legibility adjustment: the
|
|
618
|
+
* first chromatic accent that nearly reads on the paper (3:1), else the most
|
|
619
|
+
* legible chromatic accent, else the first chromatic ornament, else the ink
|
|
620
|
+
* (or, on dark paper, the paper itself).
|
|
621
|
+
*/
|
|
622
|
+
export declare function printStyleAccent(style: PrintStyle): string;
|
|
623
|
+
/**
|
|
624
|
+
* The UI theme of a book style, in light and dark. The name is
|
|
625
|
+
* `print-<style name>`; the label is the style's own.
|
|
626
|
+
*/
|
|
627
|
+
export declare function printStyleToTheme(style: PrintStyle, override?: PrintThemeOverride): ThemeConfig;
|
|
628
|
+
/**
|
|
629
|
+
* Exact print colours the derivation had to give up for contrast, per mode
|
|
630
|
+
* (role -> the print colour that was dropped and regenerated).
|
|
631
|
+
*/
|
|
632
|
+
export declare function printThemeDroppedPins(style: PrintStyle, override?: PrintThemeOverride): Record<Mode, Partial<Record<RoleName, string>>>;
|
|
633
|
+
/** Every book style as a UI theme, in the order of `printPresets`. */
|
|
634
|
+
export declare const printThemePresets: readonly ThemeConfig[];
|
|
635
|
+
/** Stylesheet URL of the families of each print theme, by theme name (for ThemeProvider's `fonts`). */
|
|
636
|
+
export declare const printThemeFontUrls: Readonly<Record<string, string>>;
|
|
637
|
+
//#endregion
|
|
638
|
+
//#region src/index.d.ts
|
|
639
|
+
export declare const allThemes: readonly ThemeConfig[];
|
|
640
|
+
//#endregion
|
|
641
|
+
export { PRINT_STYLE_ALIASES, PRINT_THEME_ALIASES, PRINT_THEME_PREFIX, PrintStyleAlias, resolvePrintThemeName, warnDeprecatedPrintId };
|
|
642
|
+
//# sourceMappingURL=index.d.ts.map
|