@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
|
@@ -0,0 +1,1611 @@
|
|
|
1
|
+
// Book-style presets for @datatechsolutions/tympan-print: fonts, paper and ink,
|
|
2
|
+
// data and proof-state colours, texture, stroke and the chart renderer of each
|
|
3
|
+
// diagramming style. The first eleven reproduce the author's earlier visual
|
|
4
|
+
// studies (diagramacao/estilos/); the rest are new
|
|
5
|
+
// interpretations of published design traditions. Style ids and labels are
|
|
6
|
+
// neutral, descriptive names; the tradition a style draws on is named only in
|
|
7
|
+
// its `referencia` ("inspirado em …"). Renamed ids stay accepted as deprecated
|
|
8
|
+
// aliases (PRINT_STYLE_ALIASES). Fonts are Google Fonts families under the OFL.
|
|
9
|
+
//
|
|
10
|
+
// `printStyleToCss` turns a preset (with optional overrides and a black and
|
|
11
|
+
// white variant) into `--ty-print-*` custom properties on
|
|
12
|
+
// `[data-ty-print-style="<name>"]`.
|
|
13
|
+
|
|
14
|
+
import { luminance, parseColor, toHex, type Rgba } from './color.ts'
|
|
15
|
+
import { PRINT_STYLE_ALIASES, warnDeprecatedPrintId, type PrintStyleAlias } from './print-aliases.ts'
|
|
16
|
+
|
|
17
|
+
export type RenderizadorGrafico = 'limpo' | 'mao' | 'isotype' | 'gravura' | 'prancheta' | 'aquarela' | 'riso' | 'pontos'
|
|
18
|
+
export type MarcaProva = 'pilula' | 'carimbo' | 'circulo' | 'sublinhado' | 'barra' | 'etiqueta' | 'formas' | 'ponto'
|
|
19
|
+
export type EstadoProva = 'sustentada' | 'refutada' | 'nao-da-para-afirmar' | 'pendente' | 'sem-dado' | 'nao-testada'
|
|
20
|
+
|
|
21
|
+
export const ESTADOS_PROVA: readonly EstadoProva[] = ['sustentada', 'refutada', 'nao-da-para-afirmar', 'pendente', 'sem-dado', 'nao-testada']
|
|
22
|
+
|
|
23
|
+
/** The word printed for each proof state (always visible, whatever the mark's shape). */
|
|
24
|
+
export const ROTULOS_PROVA: Record<EstadoProva, string> = {
|
|
25
|
+
sustentada: 'Sustentada',
|
|
26
|
+
refutada: 'Refutada',
|
|
27
|
+
'nao-da-para-afirmar': 'Não dá para afirmar',
|
|
28
|
+
pendente: 'Pendente',
|
|
29
|
+
'sem-dado': 'Sem dado',
|
|
30
|
+
'nao-testada': 'Não testada',
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface PrintFontes {
|
|
34
|
+
titulo: string
|
|
35
|
+
corpo: string
|
|
36
|
+
numero: string
|
|
37
|
+
rotulo: string
|
|
38
|
+
anotacao: string
|
|
39
|
+
mono: string
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface PrintCores {
|
|
43
|
+
papel: string
|
|
44
|
+
tinta: string
|
|
45
|
+
tinta2: string
|
|
46
|
+
tinta3: string
|
|
47
|
+
linha: string
|
|
48
|
+
destaque: string
|
|
49
|
+
destaque2: string
|
|
50
|
+
marcaTexto: string
|
|
51
|
+
contexto: string
|
|
52
|
+
prova: Record<EstadoProva, string>
|
|
53
|
+
/** Colours of page ornaments only (frames, tiles, waves); never data. Up to four. */
|
|
54
|
+
ornamento?: string[]
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/** Partial colours: any role, and any subset of the proof states. */
|
|
58
|
+
export type PrintCoresParciais = Partial<Omit<PrintCores, 'prova'>> & { prova?: Partial<Record<EstadoProva, string>> }
|
|
59
|
+
|
|
60
|
+
export type TexturaPapel = 'nenhuma' | 'grao' | 'pauta' | 'milimetrado' | 'fibra'
|
|
61
|
+
export type Hachura = 'nenhuma' | 'simples' | 'cruzada' | 'pontilhada' | 'goiva'
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Page structure of a style (addition to the contract, see CONTRATO.md):
|
|
65
|
+
* how panels are framed, how the panel letter is drawn, where notes go, how a
|
|
66
|
+
* figure is marked and how panel labels are cased.
|
|
67
|
+
*/
|
|
68
|
+
export interface PrintEstrutura {
|
|
69
|
+
/** Panel frame: top rule, heavy top rule, box, heavy box, drafting board, soft card, flat title band or none. */
|
|
70
|
+
painel: 'fio' | 'fio-grosso' | 'caixa' | 'caixa-grossa' | 'prancha' | 'cartao' | 'bloco' | 'nenhum' | 'dossie' | 'placa'
|
|
71
|
+
/** Panel letter: plain, in a filled square, in a circle, in parentheses. */
|
|
72
|
+
rotulo: 'letra' | 'quadrado' | 'circulo' | 'parenteses'
|
|
73
|
+
/** Casing of panel labels and eyebrows. */
|
|
74
|
+
rotuloCaixa: 'alta' | 'versalete' | 'normal'
|
|
75
|
+
/** Annotations inside the flow, or as notes in the outer margin (minimo-de-tinta). */
|
|
76
|
+
notas: 'dentro' | 'margem'
|
|
77
|
+
/** Figure mark: none; a short bar and rule on top (semanario); range frame, no grid (minimo-de-tinta). */
|
|
78
|
+
figura: 'simples' | 'barra-topo' | 'amplitude'
|
|
79
|
+
/** Titles and labels in lower case (diagrama-modernista, concrete design). */
|
|
80
|
+
minusculas: boolean
|
|
81
|
+
/** Bar charts drawn as horizontal bars (default) or vertical columns. Lengths come from the data either way. */
|
|
82
|
+
barras?: 'horizontal' | 'vertical'
|
|
83
|
+
/** Page ornament drawn in the margins, outside the type area (never over data). */
|
|
84
|
+
moldura?: Moldura
|
|
85
|
+
/** Running head: plain text (default), a full-width band (mapa-de-metro, constructivism) or a tag with an arrow (signage). */
|
|
86
|
+
cabeco?: 'texto' | 'faixa' | 'etiqueta'
|
|
87
|
+
/**
|
|
88
|
+
* Title treatment: cut-paper word blocks, a band with a hard shadow, an offset colour shadow, the ornament colours;
|
|
89
|
+
* italic (minimo-de-tinta), centred capitals with wide spacing (graficos-1900), centred italic (fluxo-historico), heavier and larger
|
|
90
|
+
* (constructivism), set from the third column (Swiss grid), or underlined by hand (caderno).
|
|
91
|
+
*/
|
|
92
|
+
tituloEstilo?: 'normal' | 'recorte' | 'faixa' | 'sombra' | 'arcoiris' | 'italico' | 'centro' | 'centro-italico' | 'pesado' | 'coluna3' | 'sublinhado'
|
|
93
|
+
/** Fill of the square or round panel letter. */
|
|
94
|
+
corRotulo?: 'destaque' | 'destaque2' | 'tinta' | 'marcaTexto' | 'sustentada' | 'refutada'
|
|
95
|
+
/** Bars get an ink outline (Memphis, pop art). */
|
|
96
|
+
contornoBarra?: boolean
|
|
97
|
+
/**
|
|
98
|
+
* Signature shape of the comparison chart (G1 of the style audit). Default: 'barras' ('colunas' when
|
|
99
|
+
* `barras` is 'vertical'). Every shape keeps position and size from the data; see FormaGrafico.
|
|
100
|
+
*/
|
|
101
|
+
forma?: FormaGrafico
|
|
102
|
+
/** A line at the cut between the two columns of each group: dashed (minimo-de-tinta, infografico-ilustrado) or solid (diagrama-modernista). */
|
|
103
|
+
linhaCorte?: 'tracejada' | 'cheia'
|
|
104
|
+
/** A marker on the end of each column (diagrama-modernista: a circle). */
|
|
105
|
+
marcador?: 'circulo'
|
|
106
|
+
/** Thin columns (minimo-de-tinta). */
|
|
107
|
+
colunasFinas?: boolean
|
|
108
|
+
/**
|
|
109
|
+
* Callouts drawn inside the chart (G3): numbered list under the plot (default), handwritten notes with an
|
|
110
|
+
* arrow and the value circled (caderno), speech balloons (divulgação, infografico-ilustrado) or text with a leader line (papel-salmao).
|
|
111
|
+
*/
|
|
112
|
+
chamadas?: 'numeradas' | 'manuscritas' | 'baloes' | 'guia'
|
|
113
|
+
/** Two figures of one panel stacked (default) or side by side as small multiples. */
|
|
114
|
+
multiplos?: 'empilhados' | 'lado-a-lado'
|
|
115
|
+
/** A letter (A, B…) on each small multiple (scientific figure). */
|
|
116
|
+
letraMultiplo?: boolean
|
|
117
|
+
// Page composition (G2, G4–G8 of the style audit, drawn by tympan-print's page and panel components).
|
|
118
|
+
/** Emblem beside the spread title: decoration in ornament or ink colours, never data. */
|
|
119
|
+
emblema?: Emblema
|
|
120
|
+
/** Panel fills: a pale tint (pictogramas), alternating tints (diagrama-modernista, proporcao-modular, blocos-coloridos, divulgação) or halftone dots (riso). */
|
|
121
|
+
fundoPainel?: 'claro' | 'alternado' | 'pontilhado'
|
|
122
|
+
/** The verdict panel (e): a dark block (mapa-de-metro, sinalizacao, concretism, blocos-coloridos) or a block in the highlighter tint (riso). */
|
|
123
|
+
veredito?: 'bloco-escuro' | 'bloco-cor'
|
|
124
|
+
/** 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). */
|
|
125
|
+
costura?: 'faixa' | 'bloco-escuro' | 'barra' | 'selo'
|
|
126
|
+
/** Headline of the method figures: plain, on a band, on a tilted band (constructivism), with a magnifier (divulgação). */
|
|
127
|
+
manchete?: 'texto' | 'faixa' | 'diagonal' | 'lupa'
|
|
128
|
+
/** The trace of a number (g): a list (default), a metro line with stations (mapa-de-metro) or signage plates (sinalizacao). */
|
|
129
|
+
rastro?: 'lista' | 'metro' | 'placa'
|
|
130
|
+
/** Notes of a figure under it (default) or in a column beside it headed "Leia assim" (Dados BR). */
|
|
131
|
+
notasFigura?: 'dentro' | 'coluna'
|
|
132
|
+
/** The key numbers (b) marked with the highlighter (caderno). */
|
|
133
|
+
numerosMarcados?: boolean
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Emblems drawn beside a spread title (tympan-print Emblema). `'modulor'` is
|
|
138
|
+
* the deprecated name of `'figura-modular'`, still drawn the same; it will be
|
|
139
|
+
* removed with the style aliases (see PRINT_STYLE_ALIASES).
|
|
140
|
+
*/
|
|
141
|
+
export type Emblema = 'pictogramas' | 'formas' | 'circulo-bicolor' | 'figura-modular' | 'casa' | 'lupa' | 'predios' | 'modulor'
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Shapes of the comparison chart. Lengths, heights and thicknesses always come from the data through one
|
|
145
|
+
* linear scale per figure; the shape only decides how the two series are laid out.
|
|
146
|
+
* - 'barras': horizontal bars from zero. 'colunas': vertical columns.
|
|
147
|
+
* - 'eixo-central': the cut is the axis; the series below the cut grows to the left, the one above to the right.
|
|
148
|
+
* - 'ziguezague': a bar longer than one line folds back and forth (graficos-1900); total length = value.
|
|
149
|
+
* - 'fluxo': bands whose thickness is the value, splitting at the cut (fluxo-historico).
|
|
150
|
+
* - 'predios': columns drawn as buildings (height = value; windows are texture only).
|
|
151
|
+
* - 'cartoes': one card per row with the numbers written large and mini columns on a shared scale.
|
|
152
|
+
*/
|
|
153
|
+
export type FormaGrafico = 'barras' | 'colunas' | 'eixo-central' | 'ziguezague' | 'fluxo' | 'predios' | 'cartoes'
|
|
154
|
+
|
|
155
|
+
/** Page ornaments (optional, CONTRATO §1). */
|
|
156
|
+
export type Moldura =
|
|
157
|
+
| 'nenhuma'
|
|
158
|
+
| 'dupla' // double rule frame (fluxo-historico)
|
|
159
|
+
| 'regua' // cartographic neatline with alternating segments (atlas)
|
|
160
|
+
| 'azulejo' // column of modernist tiles (azulejo-modernista)
|
|
161
|
+
| 'ondas' // wavy stripes (tropicalia)
|
|
162
|
+
| 'ramos' // vine with leaves and a rounded frame (art nouveau)
|
|
163
|
+
| 'recortes' // torn paper strips (papel-recortado)
|
|
164
|
+
| 'reticula' // halftone dot columns (pop art)
|
|
165
|
+
| 'memphis' // zigzags, triangles, circles and confetti
|
|
166
|
+
| 'diagonais' // header wedges and a diagonal bar (constructivism)
|
|
167
|
+
| 'formas' // triangle, square and circle (Bauhaus)
|
|
168
|
+
| 'quartos' // quarter circles in the page corners (diagrama-modernista)
|
|
169
|
+
|
|
170
|
+
export interface PrintStyle {
|
|
171
|
+
/** Stable id, e.g. 'jornal'. */
|
|
172
|
+
name: string
|
|
173
|
+
/** Human label, e.g. "Editorial de jornal". */
|
|
174
|
+
label: string
|
|
175
|
+
/** What the style reproduces or interprets. */
|
|
176
|
+
referencia: string
|
|
177
|
+
/** CSS font stacks. */
|
|
178
|
+
fontes: PrintFontes
|
|
179
|
+
/** Google Fonts css2 family specs (`Family Name:axes@values`); empty for system fonts only. */
|
|
180
|
+
googleFonts: string[]
|
|
181
|
+
cor: PrintCores
|
|
182
|
+
papel: { textura: TexturaPapel; intensidade: number }
|
|
183
|
+
/** Stroke width in mm, tremor 0..2 (0 = ruled), hatching of the second series. */
|
|
184
|
+
traco: { largura: number; tremor: number; hachura: Hachura }
|
|
185
|
+
grafico: RenderizadorGrafico
|
|
186
|
+
marcaProva: MarcaProva
|
|
187
|
+
/** Corner radius in mm; 0 for square styles. */
|
|
188
|
+
raio: number
|
|
189
|
+
/** Chapter and spread titles in capitals. */
|
|
190
|
+
caixaAlta: boolean
|
|
191
|
+
/** Adjustments for black and white print, applied after the grey conversion. */
|
|
192
|
+
pb: PrintCoresParciais
|
|
193
|
+
estrutura: PrintEstrutura
|
|
194
|
+
/**
|
|
195
|
+
* Brand marks in colour (default) or in their official one-ink version,
|
|
196
|
+
* for styles whose technique is one or two inks (woodcut, risograph,
|
|
197
|
+
* cyanotype). The lakebrasil mark is never recoloured; the Datatech mark
|
|
198
|
+
* has approved variations (ink, duotone, per style), see LogoDatatech.
|
|
199
|
+
*/
|
|
200
|
+
logo?: 'cor' | 'mono'
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/** Any token of a style may be overridden by the editor (partial, nested). */
|
|
204
|
+
export interface PrintStyleOverrides {
|
|
205
|
+
label?: string
|
|
206
|
+
fontes?: Partial<PrintFontes>
|
|
207
|
+
googleFonts?: string[]
|
|
208
|
+
cor?: PrintCoresParciais
|
|
209
|
+
papel?: Partial<PrintStyle['papel']>
|
|
210
|
+
traco?: Partial<PrintStyle['traco']>
|
|
211
|
+
grafico?: RenderizadorGrafico
|
|
212
|
+
marcaProva?: MarcaProva
|
|
213
|
+
raio?: number
|
|
214
|
+
caixaAlta?: boolean
|
|
215
|
+
pb?: PrintCoresParciais
|
|
216
|
+
estrutura?: Partial<PrintEstrutura>
|
|
217
|
+
logo?: 'cor' | 'mono'
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// ---------------------------------------------------------------------------
|
|
221
|
+
// Font stacks
|
|
222
|
+
// ---------------------------------------------------------------------------
|
|
223
|
+
|
|
224
|
+
const SERIF = 'Georgia, "Times New Roman", serif'
|
|
225
|
+
const SANS = 'system-ui, "Helvetica Neue", Arial, sans-serif'
|
|
226
|
+
const MONO = 'ui-monospace, "SFMono-Regular", Menlo, monospace'
|
|
227
|
+
const HAND = '"Comic Neue", "Segoe Print", cursive'
|
|
228
|
+
const f = (family: string, fallback: string) => `"${family}", ${fallback}`
|
|
229
|
+
|
|
230
|
+
const PLEX_MONO = 'IBM Plex Mono:wght@400;500'
|
|
231
|
+
|
|
232
|
+
// ---------------------------------------------------------------------------
|
|
233
|
+
// The presets
|
|
234
|
+
// ---------------------------------------------------------------------------
|
|
235
|
+
|
|
236
|
+
const dashboard: PrintStyle = {
|
|
237
|
+
name: 'dashboard',
|
|
238
|
+
label: 'Dashboard editorial',
|
|
239
|
+
referencia: 'Painéis de pesquisa: cartões, estado de prova em pílula, gráfico sóbrio; inspirado em painéis da plataforma Fakhir',
|
|
240
|
+
fontes: {
|
|
241
|
+
titulo: f('Source Serif 4', SERIF),
|
|
242
|
+
corpo: f('IBM Plex Sans', SANS),
|
|
243
|
+
numero: f('IBM Plex Sans', SANS),
|
|
244
|
+
rotulo: f('IBM Plex Sans', SANS),
|
|
245
|
+
anotacao: f('Source Serif 4', SERIF),
|
|
246
|
+
mono: f('IBM Plex Mono', MONO),
|
|
247
|
+
},
|
|
248
|
+
googleFonts: [
|
|
249
|
+
'Source Serif 4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400',
|
|
250
|
+
'IBM Plex Sans:ital,wght@0,400;0,500;0,600;0,700;1,400',
|
|
251
|
+
PLEX_MONO,
|
|
252
|
+
],
|
|
253
|
+
cor: {
|
|
254
|
+
papel: '#f7f4ee',
|
|
255
|
+
tinta: '#1c1a17',
|
|
256
|
+
tinta2: '#3d3933',
|
|
257
|
+
tinta3: '#5f594f',
|
|
258
|
+
linha: '#d6cfc2',
|
|
259
|
+
destaque: '#1c1a17',
|
|
260
|
+
destaque2: '#9a4f2a',
|
|
261
|
+
marcaTexto: '#f3e6cf',
|
|
262
|
+
contexto: '#8f877a',
|
|
263
|
+
prova: {
|
|
264
|
+
sustentada: '#3d6b1f',
|
|
265
|
+
refutada: '#a3302a',
|
|
266
|
+
'nao-da-para-afirmar': '#8a5a0f',
|
|
267
|
+
pendente: '#8a5a0f',
|
|
268
|
+
'sem-dado': '#5f594f',
|
|
269
|
+
'nao-testada': '#5f594f',
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
273
|
+
traco: { largura: 0.25, tremor: 0, hachura: 'simples' },
|
|
274
|
+
grafico: 'limpo',
|
|
275
|
+
marcaProva: 'pilula',
|
|
276
|
+
raio: 1.6,
|
|
277
|
+
caixaAlta: false,
|
|
278
|
+
pb: {},
|
|
279
|
+
estrutura: { painel: 'nenhum', rotulo: 'letra', rotuloCaixa: 'alta', notas: 'dentro', figura: 'simples', minusculas: false },
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
const graficos1900: PrintStyle = {
|
|
283
|
+
name: 'graficos-1900',
|
|
284
|
+
label: 'Gráficos de exposição (1900)',
|
|
285
|
+
referencia: 'Pranchas estatísticas de exposição universal: letreiro à mão, cores chapadas, papel pardo; inspirado em W. E. B. Du Bois (pranchas para a Exposição de Paris de 1900)',
|
|
286
|
+
fontes: {
|
|
287
|
+
titulo: f('Rubik Mono One', SANS),
|
|
288
|
+
corpo: f('Literata', SERIF),
|
|
289
|
+
numero: f('Rubik Mono One', SANS),
|
|
290
|
+
rotulo: f('Patrick Hand SC', HAND),
|
|
291
|
+
anotacao: f('Patrick Hand SC', HAND),
|
|
292
|
+
mono: f('IBM Plex Mono', MONO),
|
|
293
|
+
},
|
|
294
|
+
googleFonts: ['Rubik Mono One', 'Literata:ital,opsz,wght@0,7..72,400;0,7..72,600;1,7..72,400', 'Patrick Hand SC', PLEX_MONO],
|
|
295
|
+
cor: {
|
|
296
|
+
papel: '#eadfc8',
|
|
297
|
+
tinta: '#1d1a16',
|
|
298
|
+
tinta2: '#342e27',
|
|
299
|
+
tinta3: '#564a3d',
|
|
300
|
+
linha: '#1d1a16',
|
|
301
|
+
destaque: '#c23b2e',
|
|
302
|
+
destaque2: '#c98a2b',
|
|
303
|
+
marcaTexto: '#dcc690',
|
|
304
|
+
contexto: '#7a5a3e',
|
|
305
|
+
prova: {
|
|
306
|
+
sustentada: '#3e6a48',
|
|
307
|
+
refutada: '#a8342a',
|
|
308
|
+
'nao-da-para-afirmar': '#6f4a2e',
|
|
309
|
+
pendente: '#6f4a2e',
|
|
310
|
+
'sem-dado': '#1d1a16',
|
|
311
|
+
'nao-testada': '#1d1a16',
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
papel: { textura: 'fibra', intensidade: 0.55 },
|
|
315
|
+
traco: { largura: 0.45, tremor: 0.7, hachura: 'nenhuma' },
|
|
316
|
+
grafico: 'mao',
|
|
317
|
+
marcaProva: 'carimbo',
|
|
318
|
+
raio: 0,
|
|
319
|
+
caixaAlta: true,
|
|
320
|
+
pb: { destaque: '#3a3a3a', destaque2: '#9a9a9a' },
|
|
321
|
+
estrutura: { painel: 'caixa-grossa', rotulo: 'letra', rotuloCaixa: 'versalete', notas: 'dentro', figura: 'simples', minusculas: false, forma: 'ziguezague', tituloEstilo: 'centro' },
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
const cartaoPostal: PrintStyle = {
|
|
325
|
+
name: 'cartao-postal',
|
|
326
|
+
label: 'Cartão-postal desenhado à mão',
|
|
327
|
+
referencia: 'Cartões-postais de dados desenhados à mão: um ponto por registro, legenda à mão; inspirado em Dear Data (Giorgia Lupi e Stefanie Posavec, 2016)',
|
|
328
|
+
fontes: {
|
|
329
|
+
titulo: f('Newsreader', SERIF),
|
|
330
|
+
corpo: f('Newsreader', SERIF),
|
|
331
|
+
numero: f('Caveat', HAND),
|
|
332
|
+
rotulo: f('Caveat', HAND),
|
|
333
|
+
anotacao: f('Caveat', HAND),
|
|
334
|
+
mono: f('IBM Plex Mono', MONO),
|
|
335
|
+
},
|
|
336
|
+
googleFonts: [
|
|
337
|
+
'Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,600;1,6..72,300;1,6..72,400',
|
|
338
|
+
'Caveat:wght@400;600',
|
|
339
|
+
PLEX_MONO,
|
|
340
|
+
],
|
|
341
|
+
cor: {
|
|
342
|
+
papel: '#fbf9f3',
|
|
343
|
+
tinta: '#24211e',
|
|
344
|
+
tinta2: '#45413c',
|
|
345
|
+
tinta3: '#625e58',
|
|
346
|
+
linha: '#3a3632',
|
|
347
|
+
destaque: '#3d3fa0',
|
|
348
|
+
destaque2: '#c9462b',
|
|
349
|
+
marcaTexto: '#f1e7c4',
|
|
350
|
+
contexto: '#9a958c',
|
|
351
|
+
prova: {
|
|
352
|
+
sustentada: '#3d3fa0',
|
|
353
|
+
refutada: '#b53d25',
|
|
354
|
+
'nao-da-para-afirmar': '#24211e',
|
|
355
|
+
pendente: '#45413c',
|
|
356
|
+
'sem-dado': '#24211e',
|
|
357
|
+
'nao-testada': '#24211e',
|
|
358
|
+
},
|
|
359
|
+
},
|
|
360
|
+
papel: { textura: 'grao', intensidade: 0.35 },
|
|
361
|
+
traco: { largura: 0.3, tremor: 1, hachura: 'nenhuma' },
|
|
362
|
+
grafico: 'pontos',
|
|
363
|
+
marcaProva: 'circulo',
|
|
364
|
+
raio: 0,
|
|
365
|
+
caixaAlta: false,
|
|
366
|
+
pb: { destaque: '#1a1a1a', destaque2: '#8a8a8a' },
|
|
367
|
+
estrutura: { painel: 'caixa', rotulo: 'parenteses', rotuloCaixa: 'normal', notas: 'dentro', figura: 'simples', minusculas: false, forma: 'eixo-central' },
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
const caderno: PrintStyle = {
|
|
371
|
+
name: 'caderno',
|
|
372
|
+
label: 'Caderno de campo',
|
|
373
|
+
referencia: 'Caderno pautado de pesquisa: lápis, hachura cruzada, caneta vermelha e marca-texto',
|
|
374
|
+
fontes: {
|
|
375
|
+
titulo: f('Source Serif 4', SERIF),
|
|
376
|
+
corpo: f('Source Serif 4', SERIF),
|
|
377
|
+
numero: f('Kalam', HAND),
|
|
378
|
+
rotulo: f('Kalam', HAND),
|
|
379
|
+
anotacao: f('Gochi Hand', HAND),
|
|
380
|
+
mono: f('Courier Prime', MONO),
|
|
381
|
+
},
|
|
382
|
+
googleFonts: [
|
|
383
|
+
'Source Serif 4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400',
|
|
384
|
+
'Kalam:wght@400;700',
|
|
385
|
+
'Gochi Hand',
|
|
386
|
+
'Courier Prime:wght@400;700',
|
|
387
|
+
],
|
|
388
|
+
cor: {
|
|
389
|
+
papel: '#f7f2e4',
|
|
390
|
+
tinta: '#2b2b2b',
|
|
391
|
+
tinta2: '#454545',
|
|
392
|
+
tinta3: '#625d54',
|
|
393
|
+
linha: '#474747',
|
|
394
|
+
destaque: '#2b2b2b',
|
|
395
|
+
destaque2: '#b8322a',
|
|
396
|
+
marcaTexto: '#fff45c',
|
|
397
|
+
contexto: '#6b665c',
|
|
398
|
+
prova: {
|
|
399
|
+
sustentada: '#2b2b2b',
|
|
400
|
+
refutada: '#b0302a',
|
|
401
|
+
'nao-da-para-afirmar': '#2b2b2b',
|
|
402
|
+
pendente: '#625d54',
|
|
403
|
+
'sem-dado': '#454545',
|
|
404
|
+
'nao-testada': '#454545',
|
|
405
|
+
},
|
|
406
|
+
},
|
|
407
|
+
papel: { textura: 'pauta', intensidade: 0.6 },
|
|
408
|
+
traco: { largura: 0.3, tremor: 1.2, hachura: 'cruzada' },
|
|
409
|
+
grafico: 'mao',
|
|
410
|
+
marcaProva: 'circulo',
|
|
411
|
+
raio: 0,
|
|
412
|
+
caixaAlta: false,
|
|
413
|
+
pb: { destaque2: '#3a3a3a', marcaTexto: '#dddddd' },
|
|
414
|
+
estrutura: { painel: 'caixa', rotulo: 'parenteses', rotuloCaixa: 'normal', notas: 'dentro', figura: 'simples', minusculas: false, forma: 'colunas', chamadas: 'manuscritas', multiplos: 'lado-a-lado', tituloEstilo: 'sublinhado', numerosMarcados: true },
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
const isotype: PrintStyle = {
|
|
418
|
+
name: 'isotype',
|
|
419
|
+
label: 'Isotype',
|
|
420
|
+
referencia: 'Estatística em pictogramas (Viena, 1925-1934): um ícone = uma quantidade fixa; inspirado em Otto e Marie Neurath e Gerd Arntz',
|
|
421
|
+
fontes: {
|
|
422
|
+
titulo: f('Jost', SANS),
|
|
423
|
+
corpo: f('Jost', SANS),
|
|
424
|
+
numero: f('Jost', SANS),
|
|
425
|
+
rotulo: f('Jost', SANS),
|
|
426
|
+
anotacao: f('Jost', SANS),
|
|
427
|
+
mono: f('Jost', SANS),
|
|
428
|
+
},
|
|
429
|
+
googleFonts: ['Jost:ital,wght@0,400;0,500;0,600;0,700;1,400'],
|
|
430
|
+
cor: {
|
|
431
|
+
papel: '#f3eee2',
|
|
432
|
+
tinta: '#1c1b19',
|
|
433
|
+
tinta2: '#383632',
|
|
434
|
+
tinta3: '#5f5a50',
|
|
435
|
+
linha: '#1c1b19',
|
|
436
|
+
destaque: '#1c1b19',
|
|
437
|
+
destaque2: '#c73a2c',
|
|
438
|
+
marcaTexto: '#e4dcc8',
|
|
439
|
+
contexto: '#8a8577',
|
|
440
|
+
prova: {
|
|
441
|
+
sustentada: '#1c1b19',
|
|
442
|
+
refutada: '#b3342a',
|
|
443
|
+
'nao-da-para-afirmar': '#1c1b19',
|
|
444
|
+
pendente: '#383632',
|
|
445
|
+
'sem-dado': '#5f5a50',
|
|
446
|
+
'nao-testada': '#1c1b19',
|
|
447
|
+
},
|
|
448
|
+
},
|
|
449
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
450
|
+
traco: { largura: 0.5, tremor: 0, hachura: 'simples' },
|
|
451
|
+
grafico: 'isotype',
|
|
452
|
+
marcaProva: 'barra',
|
|
453
|
+
raio: 0,
|
|
454
|
+
caixaAlta: false,
|
|
455
|
+
pb: { destaque2: '#8c8c8c' },
|
|
456
|
+
estrutura: { painel: 'fio-grosso', rotulo: 'quadrado', rotuloCaixa: 'alta', notas: 'dentro', figura: 'simples', minusculas: false },
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
const cordel: PrintStyle = {
|
|
460
|
+
name: 'cordel',
|
|
461
|
+
label: 'Cordel',
|
|
462
|
+
referencia: 'Xilogravura de cordel: papel pardo, goiva, letreiro em laje; inspirado em J. Borges e Gilvan Samico',
|
|
463
|
+
fontes: {
|
|
464
|
+
titulo: f('Alfa Slab One', SERIF),
|
|
465
|
+
corpo: f('Alegreya', SERIF),
|
|
466
|
+
numero: f('Alfa Slab One', SERIF),
|
|
467
|
+
rotulo: f('Alegreya SC', SERIF),
|
|
468
|
+
anotacao: f('Alegreya', SERIF),
|
|
469
|
+
mono: f('Courier Prime', MONO),
|
|
470
|
+
},
|
|
471
|
+
googleFonts: ['Alfa Slab One', 'Alegreya:ital,wght@0,400;0,500;0,700;1,400', 'Alegreya SC:wght@500;700', 'Courier Prime'],
|
|
472
|
+
cor: {
|
|
473
|
+
papel: '#dcc79c',
|
|
474
|
+
tinta: '#15110d',
|
|
475
|
+
tinta2: '#2c2219',
|
|
476
|
+
tinta3: '#4a3a29',
|
|
477
|
+
linha: '#15110d',
|
|
478
|
+
destaque: '#15110d',
|
|
479
|
+
destaque2: '#15110d',
|
|
480
|
+
marcaTexto: '#c9ae78',
|
|
481
|
+
contexto: '#5a4632',
|
|
482
|
+
prova: {
|
|
483
|
+
sustentada: '#15110d',
|
|
484
|
+
refutada: '#15110d',
|
|
485
|
+
'nao-da-para-afirmar': '#15110d',
|
|
486
|
+
pendente: '#2c2219',
|
|
487
|
+
'sem-dado': '#15110d',
|
|
488
|
+
'nao-testada': '#15110d',
|
|
489
|
+
},
|
|
490
|
+
},
|
|
491
|
+
papel: { textura: 'fibra', intensidade: 0.8 },
|
|
492
|
+
traco: { largura: 0.6, tremor: 0.9, hachura: 'goiva' },
|
|
493
|
+
grafico: 'gravura',
|
|
494
|
+
marcaProva: 'carimbo',
|
|
495
|
+
raio: 0,
|
|
496
|
+
caixaAlta: false,
|
|
497
|
+
pb: {},
|
|
498
|
+
estrutura: { painel: 'caixa-grossa', rotulo: 'quadrado', rotuloCaixa: 'versalete', notas: 'dentro', figura: 'simples', minusculas: false, emblema: 'casa' },
|
|
499
|
+
logo: 'mono',
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
const riso: PrintStyle = {
|
|
503
|
+
name: 'riso',
|
|
504
|
+
label: 'Risografia',
|
|
505
|
+
referencia: 'Impressão em risógrafo a duas tintas (azul e rosa fluorescente): grão, meio-tom e registro solto',
|
|
506
|
+
fontes: {
|
|
507
|
+
titulo: f('Bricolage Grotesque', SANS),
|
|
508
|
+
corpo: f('Archivo', SANS),
|
|
509
|
+
numero: f('Bricolage Grotesque', SANS),
|
|
510
|
+
rotulo: f('Archivo', SANS),
|
|
511
|
+
anotacao: f('Space Mono', MONO),
|
|
512
|
+
mono: f('Space Mono', MONO),
|
|
513
|
+
},
|
|
514
|
+
googleFonts: [
|
|
515
|
+
'Bricolage Grotesque:opsz,wdth,wght@12..96,75..100,400..800',
|
|
516
|
+
'Archivo:ital,wdth,wght@0,62..125,400;0,62..125,600;1,62..125,400',
|
|
517
|
+
'Space Mono',
|
|
518
|
+
],
|
|
519
|
+
cor: {
|
|
520
|
+
papel: '#f5f1e8',
|
|
521
|
+
tinta: '#3d3fa0',
|
|
522
|
+
tinta2: '#3d3fa0',
|
|
523
|
+
tinta3: '#4f51a3',
|
|
524
|
+
linha: '#3d3fa0',
|
|
525
|
+
destaque: '#3d3fa0',
|
|
526
|
+
destaque2: '#ff48b0',
|
|
527
|
+
marcaTexto: '#ffd3ea',
|
|
528
|
+
contexto: '#9a8fc4',
|
|
529
|
+
prova: {
|
|
530
|
+
sustentada: '#3d3fa0',
|
|
531
|
+
refutada: '#c8187a',
|
|
532
|
+
'nao-da-para-afirmar': '#3d3fa0',
|
|
533
|
+
pendente: '#3d3fa0',
|
|
534
|
+
'sem-dado': '#3d3fa0',
|
|
535
|
+
'nao-testada': '#3d3fa0',
|
|
536
|
+
},
|
|
537
|
+
},
|
|
538
|
+
papel: { textura: 'grao', intensidade: 0.6 },
|
|
539
|
+
traco: { largura: 0.5, tremor: 0, hachura: 'pontilhada' },
|
|
540
|
+
grafico: 'riso',
|
|
541
|
+
marcaProva: 'barra',
|
|
542
|
+
raio: 0,
|
|
543
|
+
caixaAlta: false,
|
|
544
|
+
pb: { tinta: '#1a1a1a', tinta2: '#1a1a1a', tinta3: '#3a3a3a', linha: '#1a1a1a', destaque: '#1a1a1a', destaque2: '#8a8a8a' },
|
|
545
|
+
estrutura: { painel: 'caixa', rotulo: 'circulo', rotuloCaixa: 'alta', notas: 'dentro', figura: 'simples', minusculas: false, fundoPainel: 'pontilhado', veredito: 'bloco-cor' },
|
|
546
|
+
logo: 'mono',
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
const jornal: PrintStyle = {
|
|
550
|
+
name: 'jornal',
|
|
551
|
+
label: 'Editorial de jornal',
|
|
552
|
+
referencia: 'Gráficos editoriais de jornal: serifa no texto, grotesca nos números, um acento; inspirado em gráficos do NYT The Upshot (Amanda Cox, Kevin Quealy), do The Pudding e da Folha de S.Paulo',
|
|
553
|
+
fontes: {
|
|
554
|
+
titulo: f('Newsreader', SERIF),
|
|
555
|
+
corpo: f('Newsreader', SERIF),
|
|
556
|
+
numero: f('Libre Franklin', SANS),
|
|
557
|
+
rotulo: f('Libre Franklin', SANS),
|
|
558
|
+
anotacao: f('Newsreader', SERIF),
|
|
559
|
+
mono: f('IBM Plex Mono', MONO),
|
|
560
|
+
},
|
|
561
|
+
googleFonts: [
|
|
562
|
+
'Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400;1,6..72,500',
|
|
563
|
+
'Libre Franklin:ital,wght@0,400;0,500;0,600;0,700;1,400',
|
|
564
|
+
PLEX_MONO,
|
|
565
|
+
],
|
|
566
|
+
cor: {
|
|
567
|
+
papel: '#fdfcfa',
|
|
568
|
+
tinta: '#121212',
|
|
569
|
+
tinta2: '#3d3d3d',
|
|
570
|
+
tinta3: '#636363',
|
|
571
|
+
linha: '#cfcfcf',
|
|
572
|
+
destaque: '#c8431f',
|
|
573
|
+
destaque2: '#121212',
|
|
574
|
+
marcaTexto: '#f7e4db',
|
|
575
|
+
contexto: '#b0b0b0',
|
|
576
|
+
prova: {
|
|
577
|
+
sustentada: '#121212',
|
|
578
|
+
refutada: '#b83c1b',
|
|
579
|
+
'nao-da-para-afirmar': '#121212',
|
|
580
|
+
pendente: '#636363',
|
|
581
|
+
'sem-dado': '#636363',
|
|
582
|
+
'nao-testada': '#636363',
|
|
583
|
+
},
|
|
584
|
+
},
|
|
585
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
586
|
+
traco: { largura: 0.25, tremor: 0, hachura: 'nenhuma' },
|
|
587
|
+
grafico: 'limpo',
|
|
588
|
+
marcaProva: 'pilula',
|
|
589
|
+
raio: 3,
|
|
590
|
+
caixaAlta: false,
|
|
591
|
+
pb: { destaque: '#121212' },
|
|
592
|
+
estrutura: { painel: 'fio', rotulo: 'letra', rotuloCaixa: 'alta', notas: 'dentro', figura: 'simples', minusculas: false },
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
const prancheta: PrintStyle = {
|
|
596
|
+
name: 'prancheta',
|
|
597
|
+
label: 'Prancheta (cianotipia)',
|
|
598
|
+
referencia: 'Desenho técnico em cópia heliográfica: papel azul, milimetrado, cotas e letreiro normógrafo',
|
|
599
|
+
fontes: {
|
|
600
|
+
titulo: f('Share Tech Mono', MONO),
|
|
601
|
+
corpo: f('IBM Plex Sans Condensed', SANS),
|
|
602
|
+
numero: f('Share Tech Mono', MONO),
|
|
603
|
+
rotulo: f('Share Tech Mono', MONO),
|
|
604
|
+
anotacao: f('IBM Plex Sans Condensed', SANS),
|
|
605
|
+
mono: f('IBM Plex Mono', MONO),
|
|
606
|
+
},
|
|
607
|
+
googleFonts: ['Share Tech Mono', 'IBM Plex Sans Condensed:ital,wght@0,400;0,500;1,400', PLEX_MONO],
|
|
608
|
+
cor: {
|
|
609
|
+
papel: '#1d4b8f',
|
|
610
|
+
tinta: '#f6f4ea',
|
|
611
|
+
tinta2: '#e2dfd3',
|
|
612
|
+
tinta3: '#d9d6c8',
|
|
613
|
+
linha: '#f6f4ea',
|
|
614
|
+
destaque: '#f6f4ea',
|
|
615
|
+
destaque2: '#ece9dc',
|
|
616
|
+
marcaTexto: '#4d5d78',
|
|
617
|
+
contexto: '#c9c5b5',
|
|
618
|
+
prova: {
|
|
619
|
+
sustentada: '#f6f4ea',
|
|
620
|
+
refutada: '#f6f4ea',
|
|
621
|
+
'nao-da-para-afirmar': '#f6f4ea',
|
|
622
|
+
pendente: '#e2dfd3',
|
|
623
|
+
'sem-dado': '#e2dfd3',
|
|
624
|
+
'nao-testada': '#e2dfd3',
|
|
625
|
+
},
|
|
626
|
+
},
|
|
627
|
+
papel: { textura: 'milimetrado', intensidade: 0.7 },
|
|
628
|
+
traco: { largura: 0.25, tremor: 0, hachura: 'simples' },
|
|
629
|
+
grafico: 'prancheta',
|
|
630
|
+
marcaProva: 'barra',
|
|
631
|
+
raio: 0,
|
|
632
|
+
caixaAlta: true,
|
|
633
|
+
// In black and white the blueprint becomes a white sheet with black ink.
|
|
634
|
+
pb: {
|
|
635
|
+
papel: '#ffffff',
|
|
636
|
+
tinta: '#111111',
|
|
637
|
+
tinta2: '#333333',
|
|
638
|
+
tinta3: '#555555',
|
|
639
|
+
linha: '#111111',
|
|
640
|
+
destaque: '#111111',
|
|
641
|
+
destaque2: '#444444',
|
|
642
|
+
marcaTexto: '#eeeeee',
|
|
643
|
+
contexto: '#9a9a9a',
|
|
644
|
+
prova: { sustentada: '#111111', refutada: '#111111', 'nao-da-para-afirmar': '#111111', pendente: '#333333', 'sem-dado': '#333333', 'nao-testada': '#333333' },
|
|
645
|
+
},
|
|
646
|
+
estrutura: { painel: 'prancha', rotulo: 'circulo', rotuloCaixa: 'alta', notas: 'dentro', figura: 'simples', minusculas: false },
|
|
647
|
+
logo: 'mono',
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
const pranchetaClara: PrintStyle = {
|
|
651
|
+
...prancheta,
|
|
652
|
+
name: 'prancheta-clara',
|
|
653
|
+
label: 'Prancheta clara',
|
|
654
|
+
referencia: 'Desenho técnico em papel vegetal claro: tinta azul, milimetrado, cotas e letreiro normógrafo',
|
|
655
|
+
cor: {
|
|
656
|
+
papel: '#f6f7f4',
|
|
657
|
+
tinta: '#1f4787',
|
|
658
|
+
tinta2: '#2f5390',
|
|
659
|
+
tinta3: '#4a669a',
|
|
660
|
+
linha: '#1f4787',
|
|
661
|
+
destaque: '#2e3192',
|
|
662
|
+
destaque2: '#2e3192',
|
|
663
|
+
marcaTexto: '#e2dfd3',
|
|
664
|
+
contexto: '#9aa3c4',
|
|
665
|
+
prova: {
|
|
666
|
+
sustentada: '#2e3192',
|
|
667
|
+
refutada: '#2e3192',
|
|
668
|
+
'nao-da-para-afirmar': '#2e3192',
|
|
669
|
+
pendente: '#2e3192',
|
|
670
|
+
'sem-dado': '#2e3192',
|
|
671
|
+
'nao-testada': '#2e3192',
|
|
672
|
+
},
|
|
673
|
+
},
|
|
674
|
+
papel: { textura: 'milimetrado', intensidade: 0.6 },
|
|
675
|
+
pb: { destaque: '#1a1a1a', destaque2: '#1a1a1a' },
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
const aquarela: PrintStyle = {
|
|
679
|
+
name: 'aquarela',
|
|
680
|
+
label: 'Aquarela',
|
|
681
|
+
referencia: 'Caderno de aquarela: papel de algodão, lavagens de índigo e siena com borda de pigmento, legenda à mão',
|
|
682
|
+
fontes: {
|
|
683
|
+
titulo: f('Cormorant Garamond', SERIF),
|
|
684
|
+
corpo: f('Crimson Pro', SERIF),
|
|
685
|
+
numero: f('Caveat', HAND),
|
|
686
|
+
rotulo: f('Caveat', HAND),
|
|
687
|
+
anotacao: f('Caveat', HAND),
|
|
688
|
+
mono: f('IBM Plex Mono', MONO),
|
|
689
|
+
},
|
|
690
|
+
googleFonts: [
|
|
691
|
+
'Cormorant Garamond:ital,wght@0,500;0,600;1,500;1,600',
|
|
692
|
+
'Crimson Pro:ital,wght@0,400;0,500;0,600;1,400',
|
|
693
|
+
'Caveat:wght@500;700',
|
|
694
|
+
PLEX_MONO,
|
|
695
|
+
],
|
|
696
|
+
cor: {
|
|
697
|
+
papel: '#fbf7ee',
|
|
698
|
+
tinta: '#2e2520',
|
|
699
|
+
tinta2: '#4a3d33',
|
|
700
|
+
tinta3: '#635446',
|
|
701
|
+
linha: '#2e2520',
|
|
702
|
+
destaque: '#5b5fa8',
|
|
703
|
+
destaque2: '#cf8448',
|
|
704
|
+
marcaTexto: '#efe0b0',
|
|
705
|
+
contexto: '#b8ab98',
|
|
706
|
+
prova: {
|
|
707
|
+
sustentada: '#3e6a48',
|
|
708
|
+
refutada: '#a4442a',
|
|
709
|
+
'nao-da-para-afirmar': '#7a5a1c',
|
|
710
|
+
pendente: '#7a5a1c',
|
|
711
|
+
'sem-dado': '#635446',
|
|
712
|
+
'nao-testada': '#635446',
|
|
713
|
+
},
|
|
714
|
+
},
|
|
715
|
+
papel: { textura: 'fibra', intensidade: 0.6 },
|
|
716
|
+
traco: { largura: 0.35, tremor: 0.8, hachura: 'nenhuma' },
|
|
717
|
+
grafico: 'aquarela',
|
|
718
|
+
marcaProva: 'barra',
|
|
719
|
+
raio: 0,
|
|
720
|
+
caixaAlta: false,
|
|
721
|
+
pb: { destaque: '#5a5a5a', destaque2: '#b0b0b0' },
|
|
722
|
+
estrutura: { painel: 'caixa', rotulo: 'parenteses', rotuloCaixa: 'normal', notas: 'dentro', figura: 'simples', minusculas: false, forma: 'colunas', multiplos: 'lado-a-lado', tituloEstilo: 'italico' },
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
const minimoDeTinta: PrintStyle = {
|
|
726
|
+
name: 'minimo-de-tinta',
|
|
727
|
+
label: 'Mínimo de tinta',
|
|
728
|
+
referencia: 'Pouca tinta, notas na margem, pequenos múltiplos, moldura de amplitude; inspirado em Edward Tufte (The Visual Display of Quantitative Information, Beautiful Evidence)',
|
|
729
|
+
fontes: {
|
|
730
|
+
titulo: f('EB Garamond', SERIF),
|
|
731
|
+
corpo: f('EB Garamond', SERIF),
|
|
732
|
+
numero: f('EB Garamond', SERIF),
|
|
733
|
+
rotulo: f('EB Garamond', SERIF),
|
|
734
|
+
anotacao: f('EB Garamond', SERIF),
|
|
735
|
+
mono: f('IBM Plex Mono', MONO),
|
|
736
|
+
},
|
|
737
|
+
googleFonts: ['EB Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500', PLEX_MONO],
|
|
738
|
+
cor: {
|
|
739
|
+
papel: '#fffff8',
|
|
740
|
+
tinta: '#111111',
|
|
741
|
+
tinta2: '#333333',
|
|
742
|
+
tinta3: '#575757',
|
|
743
|
+
linha: '#bdbdb5',
|
|
744
|
+
destaque: '#a3261c',
|
|
745
|
+
destaque2: '#111111',
|
|
746
|
+
marcaTexto: '#f3efd6',
|
|
747
|
+
contexto: '#a6a6a0',
|
|
748
|
+
prova: {
|
|
749
|
+
sustentada: '#111111',
|
|
750
|
+
refutada: '#a3261c',
|
|
751
|
+
'nao-da-para-afirmar': '#333333',
|
|
752
|
+
pendente: '#575757',
|
|
753
|
+
'sem-dado': '#575757',
|
|
754
|
+
'nao-testada': '#575757',
|
|
755
|
+
},
|
|
756
|
+
},
|
|
757
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
758
|
+
traco: { largura: 0.15, tremor: 0, hachura: 'nenhuma' },
|
|
759
|
+
grafico: 'limpo',
|
|
760
|
+
marcaProva: 'etiqueta',
|
|
761
|
+
raio: 0,
|
|
762
|
+
caixaAlta: false,
|
|
763
|
+
pb: { destaque: '#111111' },
|
|
764
|
+
estrutura: { painel: 'nenhum', rotulo: 'letra', rotuloCaixa: 'versalete', notas: 'margem', figura: 'amplitude', minusculas: false, forma: 'colunas', colunasFinas: true, linhaCorte: 'tracejada', tituloEstilo: 'italico' },
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
const suico: PrintStyle = {
|
|
768
|
+
name: 'suico',
|
|
769
|
+
label: 'Estilo Suíço',
|
|
770
|
+
referencia: 'Estilo tipográfico internacional: grade rígida, grotesca, assimetria, um vermelho; inspirado em Josef Müller-Brockmann (Grid Systems, 1981)',
|
|
771
|
+
fontes: {
|
|
772
|
+
titulo: f('Archivo', SANS),
|
|
773
|
+
corpo: f('Archivo', SANS),
|
|
774
|
+
numero: f('Archivo', SANS),
|
|
775
|
+
rotulo: f('Archivo', SANS),
|
|
776
|
+
anotacao: f('Archivo', SANS),
|
|
777
|
+
mono: f('IBM Plex Mono', MONO),
|
|
778
|
+
},
|
|
779
|
+
googleFonts: ['Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400', PLEX_MONO],
|
|
780
|
+
cor: {
|
|
781
|
+
papel: '#fbfbf9',
|
|
782
|
+
tinta: '#0d0d0d',
|
|
783
|
+
tinta2: '#2e2e2e',
|
|
784
|
+
tinta3: '#595959',
|
|
785
|
+
linha: '#0d0d0d',
|
|
786
|
+
destaque: '#0d0d0d',
|
|
787
|
+
destaque2: '#e0261b',
|
|
788
|
+
marcaTexto: '#f9d7d2',
|
|
789
|
+
contexto: '#b5b5b0',
|
|
790
|
+
prova: {
|
|
791
|
+
sustentada: '#0d0d0d',
|
|
792
|
+
refutada: '#c8150b',
|
|
793
|
+
'nao-da-para-afirmar': '#0d0d0d',
|
|
794
|
+
pendente: '#595959',
|
|
795
|
+
'sem-dado': '#595959',
|
|
796
|
+
'nao-testada': '#595959',
|
|
797
|
+
},
|
|
798
|
+
},
|
|
799
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
800
|
+
traco: { largura: 0.35, tremor: 0, hachura: 'nenhuma' },
|
|
801
|
+
grafico: 'limpo',
|
|
802
|
+
marcaProva: 'barra',
|
|
803
|
+
raio: 0,
|
|
804
|
+
caixaAlta: false,
|
|
805
|
+
pb: { destaque2: '#8a8a8a' },
|
|
806
|
+
estrutura: { painel: 'fio-grosso', rotulo: 'letra', rotuloCaixa: 'normal', notas: 'dentro', figura: 'simples', minusculas: false, tituloEstilo: 'coluna3' },
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
const concretismo: PrintStyle = {
|
|
810
|
+
name: 'concretismo',
|
|
811
|
+
label: 'Concretismo',
|
|
812
|
+
referencia: 'Design concreto brasileiro (anos 1950-60): geometria, grotesca em caixa-baixa, preto, vermelho e ultramar; inspirado em Alexandre Wollner, Aloísio Magalhães e na ESDI',
|
|
813
|
+
fontes: {
|
|
814
|
+
titulo: f('Barlow', SANS),
|
|
815
|
+
corpo: f('Barlow', SANS),
|
|
816
|
+
numero: f('Barlow', SANS),
|
|
817
|
+
rotulo: f('Barlow Condensed', SANS),
|
|
818
|
+
anotacao: f('Barlow', SANS),
|
|
819
|
+
mono: f('Barlow Condensed', SANS),
|
|
820
|
+
},
|
|
821
|
+
googleFonts: ['Barlow:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400', 'Barlow Condensed:wght@500;600'],
|
|
822
|
+
cor: {
|
|
823
|
+
papel: '#f3efe6',
|
|
824
|
+
tinta: '#141414',
|
|
825
|
+
tinta2: '#2b2b2b',
|
|
826
|
+
tinta3: '#57534c',
|
|
827
|
+
linha: '#141414',
|
|
828
|
+
destaque: '#d7372a',
|
|
829
|
+
destaque2: '#3d3fa0',
|
|
830
|
+
marcaTexto: '#f3d3cc',
|
|
831
|
+
contexto: '#c9c3b6',
|
|
832
|
+
prova: {
|
|
833
|
+
sustentada: '#141414',
|
|
834
|
+
refutada: '#b82e22',
|
|
835
|
+
'nao-da-para-afirmar': '#3d3fa0',
|
|
836
|
+
pendente: '#57534c',
|
|
837
|
+
'sem-dado': '#57534c',
|
|
838
|
+
'nao-testada': '#57534c',
|
|
839
|
+
},
|
|
840
|
+
},
|
|
841
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
842
|
+
traco: { largura: 0.7, tremor: 0, hachura: 'nenhuma' },
|
|
843
|
+
grafico: 'limpo',
|
|
844
|
+
marcaProva: 'etiqueta',
|
|
845
|
+
raio: 0,
|
|
846
|
+
caixaAlta: false,
|
|
847
|
+
pb: { destaque: '#141414', destaque2: '#8a8a8a' },
|
|
848
|
+
estrutura: { painel: 'fio-grosso', rotulo: 'quadrado', rotuloCaixa: 'normal', notas: 'dentro', figura: 'simples', minusculas: true, forma: 'eixo-central', emblema: 'circulo-bicolor', veredito: 'bloco-escuro', costura: 'barra' },
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
const semanario: PrintStyle = {
|
|
852
|
+
name: 'semanario',
|
|
853
|
+
label: 'Semanário de economia',
|
|
854
|
+
referencia: 'Gráficos de revista semanal de economia: barra vermelha no topo, título curto, grotesca condensada, grade só horizontal; inspirado em gráficos da revista The Economist',
|
|
855
|
+
fontes: {
|
|
856
|
+
titulo: f('Source Serif 4', SERIF),
|
|
857
|
+
corpo: f('Source Serif 4', SERIF),
|
|
858
|
+
numero: f('Fira Sans Condensed', SANS),
|
|
859
|
+
rotulo: f('Fira Sans Condensed', SANS),
|
|
860
|
+
anotacao: f('Fira Sans Condensed', SANS),
|
|
861
|
+
mono: f('Fira Sans Condensed', SANS),
|
|
862
|
+
},
|
|
863
|
+
googleFonts: [
|
|
864
|
+
'Fira Sans Condensed:ital,wght@0,400;0,500;0,600;0,700;1,400',
|
|
865
|
+
'Source Serif 4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400',
|
|
866
|
+
],
|
|
867
|
+
cor: {
|
|
868
|
+
papel: '#ffffff',
|
|
869
|
+
tinta: '#121212',
|
|
870
|
+
tinta2: '#333333',
|
|
871
|
+
tinta3: '#595959',
|
|
872
|
+
linha: '#b7c6cf',
|
|
873
|
+
destaque: '#3a4aa0',
|
|
874
|
+
destaque2: '#b0bee0',
|
|
875
|
+
marcaTexto: '#fbdcd8',
|
|
876
|
+
contexto: '#b7c6cf',
|
|
877
|
+
prova: {
|
|
878
|
+
sustentada: '#3a4aa0',
|
|
879
|
+
refutada: '#d7110a',
|
|
880
|
+
'nao-da-para-afirmar': '#3a4aa0',
|
|
881
|
+
pendente: '#595959',
|
|
882
|
+
'sem-dado': '#595959',
|
|
883
|
+
'nao-testada': '#595959',
|
|
884
|
+
},
|
|
885
|
+
},
|
|
886
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
887
|
+
traco: { largura: 0.3, tremor: 0, hachura: 'nenhuma' },
|
|
888
|
+
grafico: 'limpo',
|
|
889
|
+
marcaProva: 'barra',
|
|
890
|
+
raio: 0,
|
|
891
|
+
caixaAlta: false,
|
|
892
|
+
pb: { destaque: '#121212', destaque2: '#9a9a9a' },
|
|
893
|
+
estrutura: { painel: 'fio', rotulo: 'quadrado', rotuloCaixa: 'normal', notas: 'dentro', figura: 'barra-topo', minusculas: false, multiplos: 'lado-a-lado' },
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
const infograficoIlustrado: PrintStyle = {
|
|
897
|
+
name: 'infografico-ilustrado',
|
|
898
|
+
label: 'Infográfico ilustrado',
|
|
899
|
+
referencia: 'Infografia explicativa: pictogramas, cantos redondos, balão de fala, cores amigáveis; inspirado em Nigel Holmes (Time, Wordless Diagrams)',
|
|
900
|
+
fontes: {
|
|
901
|
+
titulo: f('Rubik', SANS),
|
|
902
|
+
corpo: f('Nunito Sans', SANS),
|
|
903
|
+
numero: f('Rubik', SANS),
|
|
904
|
+
rotulo: f('Rubik', SANS),
|
|
905
|
+
anotacao: f('Nunito Sans', SANS),
|
|
906
|
+
mono: f('Nunito Sans', SANS),
|
|
907
|
+
},
|
|
908
|
+
googleFonts: ['Rubik:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400', 'Nunito Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,700;1,6..12,400'],
|
|
909
|
+
cor: {
|
|
910
|
+
papel: '#fbf6ea',
|
|
911
|
+
tinta: '#22303c',
|
|
912
|
+
tinta2: '#34424e',
|
|
913
|
+
tinta3: '#56606a',
|
|
914
|
+
linha: '#22303c',
|
|
915
|
+
destaque: '#e0603f',
|
|
916
|
+
destaque2: '#2b8a86',
|
|
917
|
+
marcaTexto: '#f6e1ad',
|
|
918
|
+
contexto: '#d9cfbb',
|
|
919
|
+
prova: {
|
|
920
|
+
sustentada: '#1f6f6b',
|
|
921
|
+
refutada: '#b8401f',
|
|
922
|
+
'nao-da-para-afirmar': '#22303c',
|
|
923
|
+
pendente: '#56606a',
|
|
924
|
+
'sem-dado': '#56606a',
|
|
925
|
+
'nao-testada': '#56606a',
|
|
926
|
+
},
|
|
927
|
+
},
|
|
928
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
929
|
+
traco: { largura: 0.5, tremor: 0, hachura: 'nenhuma' },
|
|
930
|
+
grafico: 'isotype',
|
|
931
|
+
marcaProva: 'pilula',
|
|
932
|
+
raio: 2.4,
|
|
933
|
+
caixaAlta: false,
|
|
934
|
+
pb: { destaque: '#2a2a2a', destaque2: '#8a8a8a' },
|
|
935
|
+
estrutura: { painel: 'cartao', rotulo: 'circulo', rotuloCaixa: 'normal', notas: 'dentro', figura: 'simples', minusculas: false, forma: 'predios', linhaCorte: 'tracejada', chamadas: 'baloes', multiplos: 'lado-a-lado', emblema: 'predios' },
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
const diagramaModernista: PrintStyle = {
|
|
939
|
+
name: 'diagrama-modernista',
|
|
940
|
+
label: 'Diagrama modernista',
|
|
941
|
+
referencia: 'Atlas modernista: blocos de cor chapada, sans geométrica em caixa-baixa; inspirado em Herbert Bayer (World Geo-Graphic Atlas, 1953)',
|
|
942
|
+
fontes: {
|
|
943
|
+
titulo: f('League Spartan', SANS),
|
|
944
|
+
corpo: f('Jost', SANS),
|
|
945
|
+
numero: f('League Spartan', SANS),
|
|
946
|
+
rotulo: f('League Spartan', SANS),
|
|
947
|
+
anotacao: f('Jost', SANS),
|
|
948
|
+
mono: f('Jost', SANS),
|
|
949
|
+
},
|
|
950
|
+
googleFonts: ['League Spartan:wght@400;500;600;700', 'Jost:ital,wght@0,400;0,500;0,600;1,400'],
|
|
951
|
+
cor: {
|
|
952
|
+
papel: '#f1ece0',
|
|
953
|
+
tinta: '#1b1a17',
|
|
954
|
+
tinta2: '#36342f',
|
|
955
|
+
tinta3: '#5c574d',
|
|
956
|
+
linha: '#1b1a17',
|
|
957
|
+
destaque: '#c0512d',
|
|
958
|
+
destaque2: '#5a5f93',
|
|
959
|
+
marcaTexto: '#ecd8a8',
|
|
960
|
+
contexto: '#cbc2ae',
|
|
961
|
+
prova: {
|
|
962
|
+
sustentada: '#56602a',
|
|
963
|
+
refutada: '#a8401f',
|
|
964
|
+
'nao-da-para-afirmar': '#1b1a17',
|
|
965
|
+
pendente: '#5c574d',
|
|
966
|
+
'sem-dado': '#5c574d',
|
|
967
|
+
'nao-testada': '#5c574d',
|
|
968
|
+
},
|
|
969
|
+
},
|
|
970
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
971
|
+
traco: { largura: 0.4, tremor: 0, hachura: 'nenhuma' },
|
|
972
|
+
grafico: 'limpo',
|
|
973
|
+
marcaProva: 'ponto',
|
|
974
|
+
raio: 0,
|
|
975
|
+
caixaAlta: false,
|
|
976
|
+
pb: { destaque: '#2a2a2a', destaque2: '#8a8a8a' },
|
|
977
|
+
estrutura: { painel: 'bloco', rotulo: 'circulo', rotuloCaixa: 'normal', notas: 'dentro', figura: 'simples', minusculas: true, forma: 'colunas', linhaCorte: 'cheia', marcador: 'circulo', multiplos: 'lado-a-lado', fundoPainel: 'alternado', moldura: 'quartos', manchete: 'texto' },
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
const papelSalmao: PrintStyle = {
|
|
981
|
+
name: 'papel-salmao',
|
|
982
|
+
label: 'Papel salmão',
|
|
983
|
+
referencia: 'Gráficos de jornal financeiro em papel salmão: serifa editorial no título, grotesca nos rótulos, clarete e azul; inspirado em gráficos do Financial Times',
|
|
984
|
+
fontes: {
|
|
985
|
+
titulo: f('DM Serif Display', SERIF),
|
|
986
|
+
corpo: f('Gelasio', SERIF),
|
|
987
|
+
numero: f('Hanken Grotesk', SANS),
|
|
988
|
+
rotulo: f('Hanken Grotesk', SANS),
|
|
989
|
+
anotacao: f('Hanken Grotesk', SANS),
|
|
990
|
+
mono: f('Hanken Grotesk', SANS),
|
|
991
|
+
},
|
|
992
|
+
googleFonts: ['DM Serif Display:ital@0;1', 'Gelasio:ital,wght@0,400;0,500;0,600;1,400', 'Hanken Grotesk:ital,wght@0,400;0,500;0,600;0,700;1,400'],
|
|
993
|
+
cor: {
|
|
994
|
+
papel: '#fff1e5',
|
|
995
|
+
tinta: '#33302e',
|
|
996
|
+
tinta2: '#4a4543',
|
|
997
|
+
tinta3: '#625c58',
|
|
998
|
+
linha: '#e3d2c3',
|
|
999
|
+
destaque: '#3a4aa0',
|
|
1000
|
+
destaque2: '#b0bee0',
|
|
1001
|
+
marcaTexto: '#f2dfce',
|
|
1002
|
+
contexto: '#c9bcb0',
|
|
1003
|
+
prova: {
|
|
1004
|
+
sustentada: '#3a4aa0',
|
|
1005
|
+
refutada: '#990f3d',
|
|
1006
|
+
'nao-da-para-afirmar': '#33302e',
|
|
1007
|
+
pendente: '#625c58',
|
|
1008
|
+
'sem-dado': '#625c58',
|
|
1009
|
+
'nao-testada': '#625c58',
|
|
1010
|
+
},
|
|
1011
|
+
},
|
|
1012
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
1013
|
+
traco: { largura: 0.3, tremor: 0, hachura: 'nenhuma' },
|
|
1014
|
+
grafico: 'limpo',
|
|
1015
|
+
marcaProva: 'etiqueta',
|
|
1016
|
+
raio: 0,
|
|
1017
|
+
caixaAlta: false,
|
|
1018
|
+
pb: { papel: '#ffffff', destaque: '#1a1a1a', destaque2: '#a0a0a0' },
|
|
1019
|
+
estrutura: { painel: 'fio', rotulo: 'letra', rotuloCaixa: 'alta', notas: 'dentro', figura: 'simples', minusculas: false, forma: 'colunas', chamadas: 'guia', multiplos: 'lado-a-lado' },
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
// ---------------------------------------------------------------------------
|
|
1024
|
+
// Studies 17–41 (diagramacao/estilos/estilo-17 … estilo-41; the archived ones excluded)
|
|
1025
|
+
// ---------------------------------------------------------------------------
|
|
1026
|
+
|
|
1027
|
+
const cinzas = (a: string, b = a) => ({ pendente: a, 'sem-dado': b, 'nao-testada': b })
|
|
1028
|
+
|
|
1029
|
+
const dadosBr: PrintStyle = {
|
|
1030
|
+
name: 'dados-br',
|
|
1031
|
+
label: 'Dados à brasileira',
|
|
1032
|
+
referencia: 'Jornalismo de dados brasileiro: grotesca pesada, serifa no texto, vermelho só no lado que importa; inspirado em Núcleo, Folha, Estadão e Agência Pública',
|
|
1033
|
+
fontes: { titulo: f('Libre Franklin', SANS), corpo: f('Source Serif 4', SERIF), numero: f('Libre Franklin', SANS), rotulo: f('Libre Franklin', SANS), anotacao: f('Source Serif 4', SERIF), mono: f('IBM Plex Mono', MONO) },
|
|
1034
|
+
googleFonts: ['Libre Franklin:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400', 'Source Serif 4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400', PLEX_MONO],
|
|
1035
|
+
cor: { papel: '#fbfaf6', tinta: '#1f1e1c', tinta2: '#3d3a36', tinta3: '#625d56', linha: '#dcd8cf', destaque: '#c4553a', destaque2: '#b5afa4', marcaTexto: '#f3efe6', contexto: '#b5afa4', prova: { sustentada: '#1f1e1c', refutada: '#b24a31', 'nao-da-para-afirmar': '#1f1e1c', ...cinzas('#625d56') } },
|
|
1036
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
1037
|
+
traco: { largura: 0.3, tremor: 0, hachura: 'nenhuma' },
|
|
1038
|
+
grafico: 'limpo',
|
|
1039
|
+
marcaProva: 'barra',
|
|
1040
|
+
raio: 0.8,
|
|
1041
|
+
caixaAlta: false,
|
|
1042
|
+
pb: { destaque: '#1f1e1c' },
|
|
1043
|
+
estrutura: { painel: 'fio', rotulo: 'letra', rotuloCaixa: 'normal', notas: 'dentro', figura: 'simples', minusculas: false, notasFigura: 'coluna', manchete: 'texto' },
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
const fluxoHistorico: PrintStyle = {
|
|
1047
|
+
name: 'fluxo-historico',
|
|
1048
|
+
label: 'Fluxo histórico (séc. XIX)',
|
|
1049
|
+
referencia: 'Cartas figurativas do século XIX: papel envelhecido, tinta sépia, filete duplo, versaletes; inspirado em Charles Joseph Minard e Florence Nightingale',
|
|
1050
|
+
fontes: { titulo: f('IM Fell English', SERIF), corpo: f('Old Standard TT', SERIF), numero: f('Old Standard TT', SERIF), rotulo: f('IM Fell English SC', SERIF), anotacao: f('IM Fell English', SERIF), mono: f('Old Standard TT', SERIF) },
|
|
1051
|
+
googleFonts: ['IM Fell English:ital@0;1', 'IM Fell English SC', 'Old Standard TT:ital,wght@0,400;0,700;1,400'],
|
|
1052
|
+
cor: { papel: '#efe3c6', tinta: '#3b2a1a', tinta2: '#4f3d2a', tinta3: '#5e4a36', linha: '#b89d78', destaque: '#caa472', destaque2: '#3b2a1a', marcaTexto: '#e6d5ae', contexto: '#b89d78', prova: { sustentada: '#3b2a1a', refutada: '#8f4431', 'nao-da-para-afirmar': '#3b2a1a', ...cinzas('#5e4a36') } },
|
|
1053
|
+
papel: { textura: 'fibra', intensidade: 0.35 },
|
|
1054
|
+
traco: { largura: 0.25, tremor: 0, hachura: 'pontilhada' },
|
|
1055
|
+
grafico: 'limpo',
|
|
1056
|
+
marcaProva: 'etiqueta',
|
|
1057
|
+
raio: 0,
|
|
1058
|
+
caixaAlta: false,
|
|
1059
|
+
pb: { destaque: '#8a8a8a' },
|
|
1060
|
+
estrutura: { painel: 'fio', rotulo: 'letra', rotuloCaixa: 'versalete', notas: 'dentro', figura: 'simples', minusculas: false, moldura: 'dupla', forma: 'fluxo', tituloEstilo: 'centro-italico' },
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
const blocosColoridos: PrintStyle = {
|
|
1064
|
+
name: 'blocos-coloridos',
|
|
1065
|
+
label: 'Blocos coloridos',
|
|
1066
|
+
referencia: 'Infografia em cartões de cores claras: colunas, números grandes, grotesca geométrica; inspirado em David McCandless (Information is Beautiful)',
|
|
1067
|
+
fontes: { titulo: f('Montserrat', SANS), corpo: f('Lato', SANS), numero: f('Montserrat', SANS), rotulo: f('Montserrat', SANS), anotacao: f('Lato', SANS), mono: f('Lato', SANS) },
|
|
1068
|
+
googleFonts: ['Montserrat:ital,wght@0,500;0,600;0,700;0,800;0,900;1,500', 'Lato:ital,wght@0,400;0,700;1,400'],
|
|
1069
|
+
cor: { papel: '#ffffff', tinta: '#2b2b2b', tinta2: '#444444', tinta3: '#6b6b76', linha: '#e4e4ea', destaque: '#f0506e', destaque2: '#7b5ea7', marcaTexto: '#ffe9cf', contexto: '#d3d3cf', prova: { sustentada: '#2b2b2b', refutada: '#c93a58', 'nao-da-para-afirmar': '#b8561a', ...cinzas('#6b6b76') } },
|
|
1070
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
1071
|
+
traco: { largura: 0.3, tremor: 0, hachura: 'nenhuma' },
|
|
1072
|
+
grafico: 'limpo',
|
|
1073
|
+
marcaProva: 'barra',
|
|
1074
|
+
raio: 1.6,
|
|
1075
|
+
caixaAlta: false,
|
|
1076
|
+
pb: { destaque: '#2b2b2b', destaque2: '#9a9a9a' },
|
|
1077
|
+
estrutura: { painel: 'cartao', rotulo: 'quadrado', rotuloCaixa: 'alta', notas: 'dentro', figura: 'simples', minusculas: false, barras: 'vertical', corRotulo: 'tinta', forma: 'cartoes', multiplos: 'lado-a-lado', veredito: 'bloco-escuro', fundoPainel: 'alternado', manchete: 'texto' },
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
const construtivismo: PrintStyle = {
|
|
1081
|
+
name: 'construtivismo',
|
|
1082
|
+
label: 'Construtivismo russo',
|
|
1083
|
+
referencia: 'Construtivismo soviético: vermelho e preto, diagonais, grotesca condensada em caixa-alta; inspirado em El Lissitzky, Rodchenko e os irmãos Stenberg',
|
|
1084
|
+
fontes: { titulo: f('Oswald', SANS), corpo: f('PT Sans', SANS), numero: f('Oswald', SANS), rotulo: f('Oswald', SANS), anotacao: f('PT Sans Narrow', SANS), mono: f('PT Sans Narrow', SANS) },
|
|
1085
|
+
googleFonts: ['Oswald:wght@400;500;600;700', 'PT Sans:ital,wght@0,400;0,700;1,400', 'PT Sans Narrow:wght@400;700'],
|
|
1086
|
+
cor: { papel: '#efe6d2', tinta: '#1a1714', tinta2: '#2e2a25', tinta3: '#5e564c', linha: '#1a1714', destaque: '#c8201e', destaque2: '#1a1714', marcaTexto: '#e3d6bb', contexto: '#b9ad97', prova: { sustentada: '#1a1714', refutada: '#b01c1a', 'nao-da-para-afirmar': '#1a1714', ...cinzas('#5e564c') }, ornamento: ['#c8201e', '#1a1714'] },
|
|
1087
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
1088
|
+
traco: { largura: 0.4, tremor: 0, hachura: 'nenhuma' },
|
|
1089
|
+
grafico: 'limpo',
|
|
1090
|
+
marcaProva: 'barra',
|
|
1091
|
+
raio: 0,
|
|
1092
|
+
caixaAlta: true,
|
|
1093
|
+
pb: { destaque: '#6a6a6a' },
|
|
1094
|
+
estrutura: { painel: 'fio-grosso', rotulo: 'quadrado', rotuloCaixa: 'alta', notas: 'dentro', figura: 'simples', minusculas: false, moldura: 'diagonais', corRotulo: 'refutada', tituloEstilo: 'pesado', costura: 'bloco-escuro', manchete: 'diagonal' },
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
const bauhaus: PrintStyle = {
|
|
1098
|
+
name: 'bauhaus',
|
|
1099
|
+
label: 'Bauhaus',
|
|
1100
|
+
referencia: 'Escola Bauhaus (1923–1930): triângulo, quadrado e círculo nas três primárias, sans geométrica em caixa-baixa; inspirado em Herbert Bayer e Joost Schmidt',
|
|
1101
|
+
fontes: { titulo: f('Jost', SANS), corpo: f('Jost', SANS), numero: f('Jost', SANS), rotulo: f('Jost', SANS), anotacao: f('Jost', SANS), mono: f('Jost', SANS) },
|
|
1102
|
+
googleFonts: ['Jost:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400'],
|
|
1103
|
+
cor: { papel: '#f6f2e9', tinta: '#141414', tinta2: '#2e2d2b', tinta3: '#5d5a55', linha: '#141414', destaque: '#d4372c', destaque2: '#3a3f9e', marcaTexto: '#ece21c', contexto: '#cfc9bd', prova: { sustentada: '#141414', refutada: '#b52d24', 'nao-da-para-afirmar': '#141414', ...cinzas('#5d5a55') }, ornamento: ['#ece21c', '#d4372c', '#3a3f9e'] },
|
|
1104
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
1105
|
+
traco: { largura: 0.4, tremor: 0, hachura: 'nenhuma' },
|
|
1106
|
+
grafico: 'limpo',
|
|
1107
|
+
marcaProva: 'formas',
|
|
1108
|
+
raio: 0,
|
|
1109
|
+
caixaAlta: false,
|
|
1110
|
+
pb: { destaque: '#5a5a5a', destaque2: '#a0a0a0', marcaTexto: '#e0e0e0' },
|
|
1111
|
+
estrutura: { painel: 'fio-grosso', rotulo: 'circulo', rotuloCaixa: 'normal', notas: 'dentro', figura: 'simples', minusculas: true, barras: 'vertical', moldura: 'formas', corRotulo: 'marcaTexto', multiplos: 'lado-a-lado', costura: 'faixa', manchete: 'texto' },
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
const brutalista: PrintStyle = {
|
|
1115
|
+
name: 'brutalista',
|
|
1116
|
+
label: 'Brutalista (dossiê)',
|
|
1117
|
+
referencia: 'Design brutalista de dossiê e formulário: mono em caixa-alta, campos numerados, faixas pretas, hachura, carimbo',
|
|
1118
|
+
fontes: { titulo: f('Space Mono', MONO), corpo: f('IBM Plex Mono', MONO), numero: f('Space Mono', MONO), rotulo: f('Space Mono', MONO), anotacao: f('IBM Plex Mono', MONO), mono: f('IBM Plex Mono', MONO) },
|
|
1119
|
+
googleFonts: ['Space Mono:ital,wght@0,400;0,700;1,400', 'IBM Plex Mono:ital,wght@0,400;0,500;0,600;0,700;1,400'],
|
|
1120
|
+
cor: { papel: '#ebeae5', tinta: '#0d0d0d', tinta2: '#2e2e2c', tinta3: '#4d4d4a', linha: '#0d0d0d', destaque: '#0d0d0d', destaque2: '#0d0d0d', marcaTexto: '#d6d5cf', contexto: '#9a9994', prova: { sustentada: '#0d0d0d', refutada: '#0d0d0d', 'nao-da-para-afirmar': '#0d0d0d', ...cinzas('#2e2e2c', '#4d4d4a') } },
|
|
1121
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
1122
|
+
traco: { largura: 0.35, tremor: 0, hachura: 'simples' },
|
|
1123
|
+
grafico: 'limpo',
|
|
1124
|
+
marcaProva: 'carimbo',
|
|
1125
|
+
raio: 0,
|
|
1126
|
+
caixaAlta: true,
|
|
1127
|
+
pb: {},
|
|
1128
|
+
estrutura: { painel: 'dossie', rotulo: 'letra', rotuloCaixa: 'alta', notas: 'dentro', figura: 'simples', minusculas: false },
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
const divulgacao: PrintStyle = {
|
|
1132
|
+
name: 'divulgacao',
|
|
1133
|
+
label: 'Revista de divulgação',
|
|
1134
|
+
referencia: 'Revistas de divulgação científica para jovens: cores vivas, cartões arredondados, balões, títulos pesados; inspirado em Ciência Hoje das Crianças e Superinteressante',
|
|
1135
|
+
fontes: { titulo: f('Archivo Black', SANS), corpo: f('Nunito', SANS), numero: f('Archivo Black', SANS), rotulo: f('Nunito', SANS), anotacao: f('Nunito', SANS), mono: f('Nunito', SANS) },
|
|
1136
|
+
googleFonts: ['Archivo Black', 'Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400'],
|
|
1137
|
+
cor: { papel: '#fffdf7', tinta: '#1b1446', tinta2: '#2a1d5c', tinta3: '#5f5a7a', linha: '#6a2c91', destaque: '#f58220', destaque2: '#6a2c91', marcaTexto: '#fff4c2', contexto: '#dcd3c4', prova: { sustentada: '#3d6b1f', refutada: '#c4006a', 'nao-da-para-afirmar': '#b35a00', ...cinzas('#5f5a7a') }, ornamento: ['#e6007e', '#f58220', '#8cc63f', '#6a2c91'] },
|
|
1138
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
1139
|
+
traco: { largura: 0.35, tremor: 0, hachura: 'nenhuma' },
|
|
1140
|
+
grafico: 'limpo',
|
|
1141
|
+
marcaProva: 'pilula',
|
|
1142
|
+
raio: 3,
|
|
1143
|
+
caixaAlta: false,
|
|
1144
|
+
pb: { destaque: '#8a8a8a', destaque2: '#2a2a2a' },
|
|
1145
|
+
estrutura: { painel: 'cartao', rotulo: 'circulo', rotuloCaixa: 'alta', notas: 'dentro', figura: 'simples', minusculas: false, barras: 'vertical', corRotulo: 'destaque', contornoBarra: true, tituloEstilo: 'normal', forma: 'colunas', chamadas: 'baloes', multiplos: 'lado-a-lado', emblema: 'lupa', fundoPainel: 'alternado', costura: 'selo', manchete: 'lupa' },
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
const proporcaoModular: PrintStyle = {
|
|
1149
|
+
name: 'proporcao-modular',
|
|
1150
|
+
label: 'Proporção modular',
|
|
1151
|
+
referencia: 'Proporções modulares e policromia arquitetônica: letras em estêncil, siena e verde, paredes de cor chapada; inspirado em Le Corbusier (policromia de 1931 e 1959)',
|
|
1152
|
+
fontes: { titulo: f('Stardos Stencil', SERIF), corpo: f('Work Sans', SANS), numero: f('Work Sans', SANS), rotulo: f('Work Sans', SANS), anotacao: f('Work Sans', SANS), mono: f('Allerta Stencil', SANS) },
|
|
1153
|
+
googleFonts: ['Stardos Stencil:wght@400;700', 'Work Sans:ital,wght@0,400;0,500;0,600;1,400', 'Allerta Stencil'],
|
|
1154
|
+
cor: { papel: '#f7f2e8', tinta: '#26221d', tinta2: '#3c3630', tinta3: '#6a6259', linha: '#26221d', destaque: '#9a4b33', destaque2: '#2f5f45', marcaTexto: '#e9dcc3', contexto: '#d6cbb8', prova: { sustentada: '#2a5a40', refutada: '#9a4b33', 'nao-da-para-afirmar': '#26221d', ...cinzas('#6a6259') } },
|
|
1155
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
1156
|
+
traco: { largura: 0.3, tremor: 0, hachura: 'nenhuma' },
|
|
1157
|
+
grafico: 'limpo',
|
|
1158
|
+
marcaProva: 'etiqueta',
|
|
1159
|
+
raio: 0,
|
|
1160
|
+
caixaAlta: true,
|
|
1161
|
+
pb: { destaque: '#5a5a5a', destaque2: '#a0a0a0' },
|
|
1162
|
+
estrutura: { painel: 'bloco', rotulo: 'quadrado', rotuloCaixa: 'alta', notas: 'dentro', figura: 'simples', minusculas: false, barras: 'vertical', corRotulo: 'tinta', multiplos: 'lado-a-lado', emblema: 'figura-modular', fundoPainel: 'alternado', costura: 'barra', manchete: 'texto' },
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
const sinalizacao: PrintStyle = {
|
|
1166
|
+
name: 'sinalizacao',
|
|
1167
|
+
label: 'Sinalização de aeroporto',
|
|
1168
|
+
referencia: 'Sinalização de aeroporto: faixas amarelas, setas, preto, grotesca legível à distância; inspirado em Benno Wissing e Total Design (aeroporto de Schiphol, 1967)',
|
|
1169
|
+
fontes: { titulo: f('Hind', SANS), corpo: f('Hind', SANS), numero: f('Hind', SANS), rotulo: f('Hind', SANS), anotacao: f('Hind', SANS), mono: f('Hind', SANS) },
|
|
1170
|
+
googleFonts: ['Hind:wght@400;500;600;700'],
|
|
1171
|
+
cor: { papel: '#fbfbf8', tinta: '#121212', tinta2: '#2b2b2b', tinta3: '#555553', linha: '#121212', destaque: '#121212', destaque2: '#9d9d9d', marcaTexto: '#fff200', contexto: '#9d9d9d', prova: { sustentada: '#121212', refutada: '#121212', 'nao-da-para-afirmar': '#121212', ...cinzas('#555553') } },
|
|
1172
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
1173
|
+
traco: { largura: 0.35, tremor: 0, hachura: 'nenhuma' },
|
|
1174
|
+
grafico: 'limpo',
|
|
1175
|
+
marcaProva: 'pilula',
|
|
1176
|
+
raio: 0,
|
|
1177
|
+
caixaAlta: false,
|
|
1178
|
+
pb: { marcaTexto: '#d9d9d9' },
|
|
1179
|
+
estrutura: { painel: 'placa', rotulo: 'quadrado', rotuloCaixa: 'normal', notas: 'dentro', figura: 'simples', minusculas: false, cabeco: 'etiqueta', corRotulo: 'tinta', veredito: 'bloco-escuro', rastro: 'placa', manchete: 'faixa' },
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
const pictogramas: PrintStyle = {
|
|
1183
|
+
name: 'pictogramas',
|
|
1184
|
+
label: 'Pictogramas esportivos',
|
|
1185
|
+
referencia: 'Identidade de grande evento esportivo: pictogramas em grade, azul-claro, verde e laranja, sans de corpo leve; inspirado em Otl Aicher (Munique, 1972)',
|
|
1186
|
+
fontes: { titulo: f('Albert Sans', SANS), corpo: f('Albert Sans', SANS), numero: f('Albert Sans', SANS), rotulo: f('Albert Sans', SANS), anotacao: f('Albert Sans', SANS), mono: f('Albert Sans', SANS) },
|
|
1187
|
+
googleFonts: ['Albert Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400'],
|
|
1188
|
+
cor: { papel: '#ffffff', tinta: '#1f2a33', tinta2: '#34414b', tinta3: '#5f6b73', linha: '#1f2a33', destaque: '#f28c28', destaque2: '#6b8e3a', marcaTexto: '#d4e6e8', contexto: '#b9bcc0', prova: { sustentada: '#2f5f45', refutada: '#b35a0c', 'nao-da-para-afirmar': '#1f2a33', ...cinzas('#5f6b73') } },
|
|
1189
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
1190
|
+
traco: { largura: 0.3, tremor: 0, hachura: 'nenhuma' },
|
|
1191
|
+
grafico: 'limpo',
|
|
1192
|
+
marcaProva: 'etiqueta',
|
|
1193
|
+
raio: 0,
|
|
1194
|
+
caixaAlta: false,
|
|
1195
|
+
pb: { destaque: '#8a8a8a', destaque2: '#3a3a3a', marcaTexto: '#d9d9d9' },
|
|
1196
|
+
estrutura: { painel: 'bloco', rotulo: 'quadrado', rotuloCaixa: 'normal', notas: 'dentro', figura: 'simples', minusculas: false, barras: 'vertical', corRotulo: 'sustentada', multiplos: 'lado-a-lado', emblema: 'pictogramas', fundoPainel: 'claro', manchete: 'faixa' },
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
const mapaDeMetro: PrintStyle = {
|
|
1200
|
+
name: 'mapa-de-metro',
|
|
1201
|
+
label: 'Mapa de metrô',
|
|
1202
|
+
referencia: 'Manual e mapa de metrô: faixa preta no topo, círculos coloridos, grotesca neutra; inspirado em Massimo Vignelli (metrô de Nova York, Unimark, 1970–1972)',
|
|
1203
|
+
fontes: { titulo: f('Inter', SANS), corpo: f('Inter', SANS), numero: f('Inter', SANS), rotulo: f('Inter', SANS), anotacao: f('Inter', SANS), mono: f('Inter', SANS) },
|
|
1204
|
+
googleFonts: ['Inter:wght@400;500;600;700'],
|
|
1205
|
+
cor: { papel: '#ffffff', tinta: '#111111', tinta2: '#2e2e2e', tinta3: '#595959', linha: '#111111', destaque: '#ee352e', destaque2: '#a7a9ac', marcaTexto: '#ebebe6', contexto: '#a7a9ac', prova: { sustentada: '#111111', refutada: '#d6261f', 'nao-da-para-afirmar': '#111111', ...cinzas('#595959') }, ornamento: ['#ee352e', '#ff6319', '#b933ad', '#996633'] },
|
|
1206
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
1207
|
+
traco: { largura: 0.3, tremor: 0, hachura: 'nenhuma' },
|
|
1208
|
+
grafico: 'limpo',
|
|
1209
|
+
marcaProva: 'ponto',
|
|
1210
|
+
raio: 0,
|
|
1211
|
+
caixaAlta: false,
|
|
1212
|
+
pb: { destaque: '#4a4a4a' },
|
|
1213
|
+
estrutura: { painel: 'fio', rotulo: 'circulo', rotuloCaixa: 'normal', notas: 'dentro', figura: 'simples', minusculas: false, barras: 'vertical', cabeco: 'faixa', corRotulo: 'tinta', veredito: 'bloco-escuro', rastro: 'metro', manchete: 'texto' },
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
const jornal1959: PrintStyle = {
|
|
1217
|
+
name: 'jornal-1959',
|
|
1218
|
+
label: 'Jornal modernista (1959)',
|
|
1219
|
+
referencia: 'Reforma gráfica de jornal modernista: branco, preto e cinza, filetes, Bodoni no título, grade limpa; inspirado em Amilcar de Castro (reforma do Jornal do Brasil, 1956–1959)',
|
|
1220
|
+
fontes: { titulo: f('Libre Bodoni', SERIF), corpo: f('PT Serif', SERIF), numero: f('Libre Bodoni', SERIF), rotulo: f('Libre Franklin', SANS), anotacao: f('PT Serif', SERIF), mono: f('Libre Franklin', SANS) },
|
|
1221
|
+
googleFonts: ['Libre Bodoni:wght@400;700', 'PT Serif:ital,wght@0,400;0,700;1,400', 'Libre Franklin:wght@400;500;600;700'],
|
|
1222
|
+
cor: { papel: '#fdfdfb', tinta: '#111111', tinta2: '#2b2b2b', tinta3: '#595959', linha: '#111111', destaque: '#111111', destaque2: '#a3a3a3', marcaTexto: '#ececea', contexto: '#a3a3a3', prova: { sustentada: '#111111', refutada: '#111111', 'nao-da-para-afirmar': '#111111', ...cinzas('#595959') } },
|
|
1223
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
1224
|
+
traco: { largura: 0.25, tremor: 0, hachura: 'nenhuma' },
|
|
1225
|
+
grafico: 'limpo',
|
|
1226
|
+
marcaProva: 'barra',
|
|
1227
|
+
raio: 0,
|
|
1228
|
+
caixaAlta: false,
|
|
1229
|
+
pb: {},
|
|
1230
|
+
estrutura: { painel: 'fio', rotulo: 'letra', rotuloCaixa: 'alta', notas: 'dentro', figura: 'simples', minusculas: false },
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
const azulejoModernista: PrintStyle = {
|
|
1234
|
+
name: 'azulejo-modernista',
|
|
1235
|
+
label: 'Azulejo modernista',
|
|
1236
|
+
referencia: 'Painéis de azulejo modernista: módulo azul e branco com semicírculos e quadrados, acento amarelo, geometria; inspirado em Athos Bulcão (Brasília)',
|
|
1237
|
+
fontes: { titulo: f('Jost', SANS), corpo: f('Jost', SANS), numero: f('Jost', SANS), rotulo: f('Jost', SANS), anotacao: f('Jost', SANS), mono: f('Jost', SANS) },
|
|
1238
|
+
googleFonts: ['Jost:ital,wght@0,400;0,500;0,600;0,700;1,400'],
|
|
1239
|
+
cor: { papel: '#fbfaf5', tinta: '#15171c', tinta2: '#2b2e35', tinta3: '#5f636b', linha: '#3040b0', destaque: '#3040b0', destaque2: '#aab3de', marcaTexto: '#f0efe8', contexto: '#aab3de', prova: { sustentada: '#15171c', refutada: '#3040b0', 'nao-da-para-afirmar': '#15171c', ...cinzas('#5f636b') }, ornamento: ['#3040b0', '#fbfaf5', '#f0b323'] },
|
|
1240
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
1241
|
+
traco: { largura: 0.3, tremor: 0, hachura: 'nenhuma' },
|
|
1242
|
+
grafico: 'limpo',
|
|
1243
|
+
marcaProva: 'barra',
|
|
1244
|
+
raio: 0,
|
|
1245
|
+
caixaAlta: false,
|
|
1246
|
+
pb: { destaque: '#3a3a3a', destaque2: '#b0b0b0' },
|
|
1247
|
+
estrutura: { painel: 'fio', rotulo: 'quadrado', rotuloCaixa: 'normal', notas: 'dentro', figura: 'simples', minusculas: false, moldura: 'azulejo', corRotulo: 'destaque' },
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
const tropicalia: PrintStyle = {
|
|
1251
|
+
name: 'tropicalia',
|
|
1252
|
+
label: 'Tropicália',
|
|
1253
|
+
referencia: 'Capas e cartazes tropicalistas (1967–1969): ondas de cor, letreiro exuberante, laranja, roxo e magenta; inspirado em Rogério Duarte',
|
|
1254
|
+
fontes: { titulo: f('Shrikhand', SERIF), corpo: f('Work Sans', SANS), numero: f('Work Sans', SANS), rotulo: f('Work Sans', SANS), anotacao: f('Work Sans', SANS), mono: f('Work Sans', SANS) },
|
|
1255
|
+
googleFonts: ['Shrikhand', 'Work Sans:ital,wght@0,400;0,500;0,600;0,700;1,400'],
|
|
1256
|
+
cor: { papel: '#fff6e3', tinta: '#1e1a24', tinta2: '#332c3b', tinta3: '#61586a', linha: '#5b2a86', destaque: '#5b2a86', destaque2: '#ee8a1c', marcaTexto: '#fde7c2', contexto: '#ead9bf', prova: { sustentada: '#5b2a86', refutada: '#c21f6e', 'nao-da-para-afirmar': '#1e1a24', ...cinzas('#61586a') }, ornamento: ['#e8601c', '#d6247a', '#5b2a86', '#1f8a5b'] },
|
|
1257
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
1258
|
+
traco: { largura: 0.3, tremor: 0, hachura: 'nenhuma' },
|
|
1259
|
+
grafico: 'limpo',
|
|
1260
|
+
marcaProva: 'barra',
|
|
1261
|
+
raio: 0,
|
|
1262
|
+
caixaAlta: false,
|
|
1263
|
+
pb: { destaque: '#2a2a2a', destaque2: '#a0a0a0' },
|
|
1264
|
+
estrutura: { painel: 'fio', rotulo: 'letra', rotuloCaixa: 'normal', notas: 'dentro', figura: 'simples', minusculas: false, moldura: 'ondas', tituloEstilo: 'arcoiris' },
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
const atlasOficial: PrintStyle = {
|
|
1268
|
+
name: 'atlas-oficial',
|
|
1269
|
+
label: 'Atlas oficial (cartografia)',
|
|
1270
|
+
referencia: 'Atlas oficiais: moldura cartográfica com régua alternada, hachura, terra e oliva, legenda de convenções; inspirado em atlas oficiais brasileiros (IBGE, Atlas Nacional)',
|
|
1271
|
+
fontes: { titulo: f('IBM Plex Sans Condensed', SANS), corpo: f('IBM Plex Serif', SERIF), numero: f('IBM Plex Sans Condensed', SANS), rotulo: f('IBM Plex Sans Condensed', SANS), anotacao: f('IBM Plex Serif', SERIF), mono: f('IBM Plex Sans Condensed', SANS) },
|
|
1272
|
+
googleFonts: ['IBM Plex Sans Condensed:wght@400;500;600;700', 'IBM Plex Serif:ital,wght@0,400;0,600;1,400'],
|
|
1273
|
+
cor: { papel: '#fbf8ef', tinta: '#23231d', tinta2: '#3a3a31', tinta3: '#666355', linha: '#23231d', destaque: '#8c5a2b', destaque2: '#5c6b2f', marcaTexto: '#eee8d3', contexto: '#d9d3bd', prova: { sustentada: '#23231d', refutada: '#8c5a2b', 'nao-da-para-afirmar': '#23231d', ...cinzas('#666355') }, ornamento: ['#23231d', '#fbf8ef'] },
|
|
1274
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
1275
|
+
traco: { largura: 0.3, tremor: 0, hachura: 'simples' },
|
|
1276
|
+
grafico: 'limpo',
|
|
1277
|
+
marcaProva: 'barra',
|
|
1278
|
+
raio: 0,
|
|
1279
|
+
caixaAlta: true,
|
|
1280
|
+
pb: { destaque: '#4a4a4a', destaque2: '#7a7a7a' },
|
|
1281
|
+
estrutura: { painel: 'fio', rotulo: 'letra', rotuloCaixa: 'alta', notas: 'dentro', figura: 'simples', minusculas: false, moldura: 'regua' },
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
const gradeHolandesa: PrintStyle = {
|
|
1285
|
+
name: 'grade-holandesa',
|
|
1286
|
+
label: 'Grade holandesa',
|
|
1287
|
+
referencia: 'Grade aparente, letreiro modular espaçado, preto e um laranja; inspirado em Wim Crouwel (Stedelijk Museum, New Alphabet, 1967)',
|
|
1288
|
+
fontes: { titulo: f('Major Mono Display', MONO), corpo: f('Hanken Grotesk', SANS), numero: f('Hanken Grotesk', SANS), rotulo: f('Hanken Grotesk', SANS), anotacao: f('Hanken Grotesk', SANS), mono: f('Hanken Grotesk', SANS) },
|
|
1289
|
+
googleFonts: ['Major Mono Display', 'Hanken Grotesk:wght@400;500;600;700;800'],
|
|
1290
|
+
cor: { papel: '#ffffff', tinta: '#111111', tinta2: '#2e2e2e', tinta3: '#595959', linha: '#111111', destaque: '#111111', destaque2: '#f04e23', marcaTexto: '#fde3da', contexto: '#dddddd', prova: { sustentada: '#111111', refutada: '#c8391a', 'nao-da-para-afirmar': '#111111', ...cinzas('#595959') } },
|
|
1291
|
+
papel: { textura: 'milimetrado', intensidade: 0.5 },
|
|
1292
|
+
traco: { largura: 0.3, tremor: 0, hachura: 'nenhuma' },
|
|
1293
|
+
grafico: 'limpo',
|
|
1294
|
+
marcaProva: 'barra',
|
|
1295
|
+
raio: 0,
|
|
1296
|
+
caixaAlta: true,
|
|
1297
|
+
pb: { destaque2: '#9a9a9a' },
|
|
1298
|
+
estrutura: { painel: 'fio-grosso', rotulo: 'quadrado', rotuloCaixa: 'normal', notas: 'dentro', figura: 'simples', minusculas: true, corRotulo: 'destaque2' },
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
const papelRecortado: PrintStyle = {
|
|
1302
|
+
name: 'papel-recortado',
|
|
1303
|
+
label: 'Papel recortado',
|
|
1304
|
+
referencia: 'Cartazes e aberturas de filme em papel recortado: preto e laranja, letreiro à mão em blocos; inspirado em Saul Bass (Anatomy of a Murder, Vertigo)',
|
|
1305
|
+
fontes: { titulo: f('Londrina Solid', SANS), corpo: f('Work Sans', SANS), numero: f('Londrina Solid', SANS), rotulo: f('Work Sans', SANS), anotacao: f('Work Sans', SANS), mono: f('Work Sans', SANS) },
|
|
1306
|
+
googleFonts: ['Londrina Solid:wght@400;900', 'Work Sans:ital,wght@0,400;0,500;0,600;0,700;1,400'],
|
|
1307
|
+
cor: { papel: '#f3ead8', tinta: '#161616', tinta2: '#2c2a26', tinta3: '#5e574c', linha: '#161616', destaque: '#161616', destaque2: '#e8591a', marcaTexto: '#ecd9b9', contexto: '#d8cbb0', prova: { sustentada: '#161616', refutada: '#b3431a', 'nao-da-para-afirmar': '#161616', ...cinzas('#5e574c') }, ornamento: ['#161616', '#e8591a'] },
|
|
1308
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
1309
|
+
traco: { largura: 0.35, tremor: 0, hachura: 'nenhuma' },
|
|
1310
|
+
grafico: 'limpo',
|
|
1311
|
+
marcaProva: 'barra',
|
|
1312
|
+
raio: 0,
|
|
1313
|
+
caixaAlta: false,
|
|
1314
|
+
pb: { destaque2: '#8a8a8a' },
|
|
1315
|
+
estrutura: { painel: 'fio-grosso', rotulo: 'letra', rotuloCaixa: 'normal', notas: 'dentro', figura: 'simples', minusculas: false, moldura: 'recortes', tituloEstilo: 'recorte' },
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
const popArt: PrintStyle = {
|
|
1319
|
+
name: 'pop-art',
|
|
1320
|
+
label: 'Pop art',
|
|
1321
|
+
referencia: 'Pop art: pontos Ben-Day, contorno preto grosso, primárias, balão e letreiro de quadrinhos; inspirado em Roy Lichtenstein',
|
|
1322
|
+
fontes: { titulo: f('Bangers', SANS), corpo: f('Nunito Sans', SANS), numero: f('Bangers', SANS), rotulo: f('Nunito Sans', SANS), anotacao: f('Comic Neue', HAND), mono: f('Nunito Sans', SANS) },
|
|
1323
|
+
googleFonts: ['Bangers', 'Nunito Sans:wght@400;600;700;800', 'Comic Neue:wght@400;700'],
|
|
1324
|
+
cor: { papel: '#fffdf5', tinta: '#111111', tinta2: '#2b2b2b', tinta3: '#555555', linha: '#111111', destaque: '#2b44b8', destaque2: '#e4252b', marcaTexto: '#f6ea00', contexto: '#d9d4c4', prova: { sustentada: '#111111', refutada: '#c81e24', 'nao-da-para-afirmar': '#111111', ...cinzas('#555555') }, ornamento: ['#e4252b', '#f6ea00', '#2b44b8'] },
|
|
1325
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
1326
|
+
traco: { largura: 0.45, tremor: 0, hachura: 'pontilhada' },
|
|
1327
|
+
grafico: 'limpo',
|
|
1328
|
+
marcaProva: 'barra',
|
|
1329
|
+
raio: 0,
|
|
1330
|
+
caixaAlta: true,
|
|
1331
|
+
pb: { destaque: '#2a2a2a', destaque2: '#8a8a8a', marcaTexto: '#d9d9d9' },
|
|
1332
|
+
estrutura: { painel: 'fio-grosso', rotulo: 'letra', rotuloCaixa: 'normal', notas: 'dentro', figura: 'simples', minusculas: false, moldura: 'reticula', tituloEstilo: 'faixa', contornoBarra: true },
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
const cientifico: PrintStyle = {
|
|
1336
|
+
name: 'cientifico',
|
|
1337
|
+
label: 'Figura de periódico científico',
|
|
1338
|
+
referencia: 'Figuras de periódicos científicos: painéis A e B, eixos com rótulo, paleta segura para daltônicos, legenda longa; inspirado em figuras da Nature, da Science e da PNAS',
|
|
1339
|
+
fontes: { titulo: f('STIX Two Text', SERIF), corpo: f('STIX Two Text', SERIF), numero: f('Arimo', SANS), rotulo: f('Arimo', SANS), anotacao: f('Arimo', SANS), mono: f('Arimo', SANS) },
|
|
1340
|
+
googleFonts: ['STIX Two Text:ital,wght@0,400;0,600;0,700;1,400', 'Arimo:wght@400;700'],
|
|
1341
|
+
cor: { papel: '#ffffff', tinta: '#111111', tinta2: '#2e2e2e', tinta3: '#555555', linha: '#111111', destaque: '#3b4aa8', destaque2: '#d97a00', marcaTexto: '#f2f2f2', contexto: '#bdbdbd', prova: { sustentada: '#111111', refutada: '#111111', 'nao-da-para-afirmar': '#111111', ...cinzas('#555555') } },
|
|
1342
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
1343
|
+
traco: { largura: 0.25, tremor: 0, hachura: 'nenhuma' },
|
|
1344
|
+
grafico: 'limpo',
|
|
1345
|
+
marcaProva: 'barra',
|
|
1346
|
+
raio: 0,
|
|
1347
|
+
caixaAlta: false,
|
|
1348
|
+
pb: { destaque: '#2a2a2a', destaque2: '#9a9a9a' },
|
|
1349
|
+
estrutura: { painel: 'fio', rotulo: 'letra', rotuloCaixa: 'normal', notas: 'dentro', figura: 'simples', minusculas: false, barras: 'vertical', forma: 'colunas', letraMultiplo: true, multiplos: 'lado-a-lado' },
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
const artNouveau: PrintStyle = {
|
|
1353
|
+
name: 'art-nouveau',
|
|
1354
|
+
label: 'Art nouveau',
|
|
1355
|
+
referencia: 'Art nouveau: moldura arredondada, ramos e folhas, ocre e verde-oliva, letreiro decorativo; inspirado em Alphonse Mucha',
|
|
1356
|
+
fontes: { titulo: f('Federo', SERIF), corpo: f('EB Garamond', SERIF), numero: f('EB Garamond', SERIF), rotulo: f('Federo', SERIF), anotacao: f('EB Garamond', SERIF), mono: f('EB Garamond', SERIF) },
|
|
1357
|
+
googleFonts: ['Federo', 'EB Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500'],
|
|
1358
|
+
cor: { papel: '#f6eedb', tinta: '#2a2718', tinta2: '#3f3a26', tinta3: '#625a44', linha: '#8a6d2c', destaque: '#4a5a2a', destaque2: '#b9832a', marcaTexto: '#efe2c2', contexto: '#e0d2ae', prova: { sustentada: '#4a5a2a', refutada: '#9a4a36', 'nao-da-para-afirmar': '#2a2718', ...cinzas('#625a44') }, ornamento: ['#4a5a2a', '#b9832a', '#8a6d2c'] },
|
|
1359
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
1360
|
+
traco: { largura: 0.3, tremor: 0, hachura: 'nenhuma' },
|
|
1361
|
+
grafico: 'limpo',
|
|
1362
|
+
marcaProva: 'pilula',
|
|
1363
|
+
raio: 2,
|
|
1364
|
+
caixaAlta: false,
|
|
1365
|
+
pb: { destaque: '#3a3a3a', destaque2: '#a0a0a0' },
|
|
1366
|
+
estrutura: { painel: 'fio', rotulo: 'letra', rotuloCaixa: 'normal', notas: 'dentro', figura: 'simples', minusculas: false, moldura: 'ramos' },
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
const memphis: PrintStyle = {
|
|
1370
|
+
name: 'memphis',
|
|
1371
|
+
label: 'Memphis',
|
|
1372
|
+
referencia: 'Design pós-moderno de Milão (1981): zigue-zagues, triângulos, confete, turquesa, amarelo e rosa, contorno preto; inspirado em Ettore Sottsass e no grupo Memphis',
|
|
1373
|
+
fontes: { titulo: f('Bungee', SANS), corpo: f('Rubik', SANS), numero: f('Bungee', SANS), rotulo: f('Rubik', SANS), anotacao: f('Rubik', SANS), mono: f('Rubik', SANS) },
|
|
1374
|
+
googleFonts: ['Bungee', 'Rubik:ital,wght@0,400;0,500;0,700;1,400'],
|
|
1375
|
+
cor: { papel: '#fffaf0', tinta: '#161616', tinta2: '#2c2b29', tinta3: '#5c5a57', linha: '#161616', destaque: '#1fb5a8', destaque2: '#f6ea00', marcaTexto: '#fff2b8', contexto: '#e2dccb', prova: { sustentada: '#161616', refutada: '#c2185b', 'nao-da-para-afirmar': '#161616', ...cinzas('#5c5a57') }, ornamento: ['#161616', '#f6ea00', '#ff5fa2', '#1fb5a8'] },
|
|
1376
|
+
papel: { textura: 'nenhuma', intensidade: 0 },
|
|
1377
|
+
traco: { largura: 0.3, tremor: 0, hachura: 'nenhuma' },
|
|
1378
|
+
grafico: 'limpo',
|
|
1379
|
+
marcaProva: 'barra',
|
|
1380
|
+
raio: 0,
|
|
1381
|
+
caixaAlta: true,
|
|
1382
|
+
pb: { destaque: '#5a5a5a', destaque2: '#d0d0d0' },
|
|
1383
|
+
estrutura: { painel: 'caixa', rotulo: 'circulo', rotuloCaixa: 'normal', notas: 'dentro', figura: 'simples', minusculas: false, moldura: 'memphis', tituloEstilo: 'sombra', contornoBarra: true, corRotulo: 'destaque2' },
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
/** The 39 book styles, by name. */
|
|
1387
|
+
export const printPresets = {
|
|
1388
|
+
dashboard,
|
|
1389
|
+
'graficos-1900': graficos1900,
|
|
1390
|
+
'cartao-postal': cartaoPostal,
|
|
1391
|
+
caderno,
|
|
1392
|
+
isotype,
|
|
1393
|
+
cordel,
|
|
1394
|
+
riso,
|
|
1395
|
+
jornal,
|
|
1396
|
+
prancheta,
|
|
1397
|
+
'prancheta-clara': pranchetaClara,
|
|
1398
|
+
aquarela,
|
|
1399
|
+
'minimo-de-tinta': minimoDeTinta,
|
|
1400
|
+
suico,
|
|
1401
|
+
concretismo,
|
|
1402
|
+
semanario,
|
|
1403
|
+
'infografico-ilustrado': infograficoIlustrado,
|
|
1404
|
+
'diagrama-modernista': diagramaModernista,
|
|
1405
|
+
'papel-salmao': papelSalmao,
|
|
1406
|
+
'dados-br': dadosBr,
|
|
1407
|
+
'fluxo-historico': fluxoHistorico,
|
|
1408
|
+
'blocos-coloridos': blocosColoridos,
|
|
1409
|
+
construtivismo,
|
|
1410
|
+
bauhaus,
|
|
1411
|
+
brutalista,
|
|
1412
|
+
divulgacao,
|
|
1413
|
+
'proporcao-modular': proporcaoModular,
|
|
1414
|
+
sinalizacao,
|
|
1415
|
+
pictogramas,
|
|
1416
|
+
'mapa-de-metro': mapaDeMetro,
|
|
1417
|
+
'jornal-1959': jornal1959,
|
|
1418
|
+
'azulejo-modernista': azulejoModernista,
|
|
1419
|
+
tropicalia,
|
|
1420
|
+
'atlas-oficial': atlasOficial,
|
|
1421
|
+
'grade-holandesa': gradeHolandesa,
|
|
1422
|
+
'papel-recortado': papelRecortado,
|
|
1423
|
+
'pop-art': popArt,
|
|
1424
|
+
cientifico,
|
|
1425
|
+
'art-nouveau': artNouveau,
|
|
1426
|
+
memphis,
|
|
1427
|
+
} satisfies Record<string, PrintStyle>
|
|
1428
|
+
|
|
1429
|
+
export type PrintPresetName = keyof typeof printPresets
|
|
1430
|
+
export const PRINT_PRESET_NAMES = Object.keys(printPresets) as PrintPresetName[]
|
|
1431
|
+
export const DEFAULT_PRINT_STYLE: PrintPresetName = 'jornal'
|
|
1432
|
+
|
|
1433
|
+
// ---------------------------------------------------------------------------
|
|
1434
|
+
// Deprecated ids
|
|
1435
|
+
// ---------------------------------------------------------------------------
|
|
1436
|
+
|
|
1437
|
+
/** Any id a style can be named by: a current name or a deprecated alias (PRINT_STYLE_ALIASES). */
|
|
1438
|
+
export type PrintStyleId = PrintPresetName | PrintStyleAlias
|
|
1439
|
+
|
|
1440
|
+
/**
|
|
1441
|
+
* The current name of a style id: a current name is returned as is, a
|
|
1442
|
+
* deprecated alias is mapped (with a one-time development warning), anything
|
|
1443
|
+
* else gives `undefined`.
|
|
1444
|
+
*/
|
|
1445
|
+
export function resolvePrintStyleName(id: string): PrintPresetName | undefined {
|
|
1446
|
+
if (Object.hasOwn(printPresets, id)) return id as PrintPresetName
|
|
1447
|
+
if (Object.hasOwn(PRINT_STYLE_ALIASES, id)) {
|
|
1448
|
+
const current = PRINT_STYLE_ALIASES[id as PrintStyleAlias]
|
|
1449
|
+
warnDeprecatedPrintId(id, current)
|
|
1450
|
+
return current
|
|
1451
|
+
}
|
|
1452
|
+
return undefined
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
/** The preset of a style id (current or deprecated); throws on an unknown id. */
|
|
1456
|
+
export function printPresetById(id: string): PrintStyle {
|
|
1457
|
+
const name = resolvePrintStyleName(id)
|
|
1458
|
+
if (!name) throw new Error(`tympan: unknown print style "${id}"`)
|
|
1459
|
+
return printPresets[name]
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
// ---------------------------------------------------------------------------
|
|
1463
|
+
// Resolution: overrides, black and white
|
|
1464
|
+
// ---------------------------------------------------------------------------
|
|
1465
|
+
|
|
1466
|
+
function mergeCores(base: PrintCores, over?: PrintCoresParciais): PrintCores {
|
|
1467
|
+
if (!over) return base
|
|
1468
|
+
const { prova, ...rest } = over
|
|
1469
|
+
const clean = Object.fromEntries(Object.entries(rest).filter(([, v]) => v !== undefined)) as Partial<PrintCores>
|
|
1470
|
+
return { ...base, ...clean, prova: { ...base.prova, ...(prova ?? {}) } }
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
/** A style with the editor's overrides applied (nested, partial). */
|
|
1474
|
+
export function mergePrintStyle(style: PrintStyle, overrides?: PrintStyleOverrides): PrintStyle {
|
|
1475
|
+
if (!overrides) return style
|
|
1476
|
+
return {
|
|
1477
|
+
...style,
|
|
1478
|
+
label: overrides.label ?? style.label,
|
|
1479
|
+
fontes: { ...style.fontes, ...overrides.fontes },
|
|
1480
|
+
googleFonts: overrides.googleFonts ?? style.googleFonts,
|
|
1481
|
+
cor: mergeCores(style.cor, overrides.cor),
|
|
1482
|
+
papel: { ...style.papel, ...overrides.papel },
|
|
1483
|
+
traco: { ...style.traco, ...overrides.traco },
|
|
1484
|
+
grafico: overrides.grafico ?? style.grafico,
|
|
1485
|
+
marcaProva: overrides.marcaProva ?? style.marcaProva,
|
|
1486
|
+
raio: overrides.raio ?? style.raio,
|
|
1487
|
+
caixaAlta: overrides.caixaAlta ?? style.caixaAlta,
|
|
1488
|
+
pb: overrides.pb ? mergeCores({ ...style.cor, ...style.pb, prova: { ...style.cor.prova, ...style.pb.prova } }, overrides.pb) : style.pb,
|
|
1489
|
+
estrutura: { ...style.estrutura, ...overrides.estrutura },
|
|
1490
|
+
logo: overrides.logo ?? style.logo,
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
const fromLinear = (c: number) => (c <= 0.0031308 ? 12.92 * c : 1.055 * c ** (1 / 2.4) - 0.055)
|
|
1495
|
+
|
|
1496
|
+
/** The grey with the same WCAG relative luminance, so every contrast ratio survives the conversion. */
|
|
1497
|
+
export function toGrey(color: string): string {
|
|
1498
|
+
const c: Rgba = parseColor(color)
|
|
1499
|
+
const y = luminance(c)
|
|
1500
|
+
const v = fromLinear(y)
|
|
1501
|
+
return toHex({ r: v, g: v, b: v, a: 1 })
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
/** Colours for black and white print: every role in grey, then the style's own `pb` adjustments. */
|
|
1505
|
+
export function printStyleCoresPb(style: PrintStyle): PrintCores {
|
|
1506
|
+
const g = style.cor
|
|
1507
|
+
const grey: PrintCores = {
|
|
1508
|
+
papel: toGrey(g.papel),
|
|
1509
|
+
tinta: toGrey(g.tinta),
|
|
1510
|
+
tinta2: toGrey(g.tinta2),
|
|
1511
|
+
tinta3: toGrey(g.tinta3),
|
|
1512
|
+
linha: toGrey(g.linha),
|
|
1513
|
+
destaque: toGrey(g.destaque),
|
|
1514
|
+
destaque2: toGrey(g.destaque2),
|
|
1515
|
+
marcaTexto: toGrey(g.marcaTexto),
|
|
1516
|
+
contexto: toGrey(g.contexto),
|
|
1517
|
+
prova: Object.fromEntries(ESTADOS_PROVA.map((e) => [e, toGrey(g.prova[e])])) as Record<EstadoProva, string>,
|
|
1518
|
+
...(g.ornamento ? { ornamento: g.ornamento.map(toGrey) } : {}),
|
|
1519
|
+
}
|
|
1520
|
+
return mergeCores(grey, style.pb)
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
export interface PrintCssOptions {
|
|
1524
|
+
/** Black and white variant. */
|
|
1525
|
+
pb?: boolean
|
|
1526
|
+
/** Editor overrides of any token. */
|
|
1527
|
+
overrides?: PrintStyleOverrides
|
|
1528
|
+
/** Selector to scope the properties to; defaults to `[data-ty-print-style="<name>"]`. */
|
|
1529
|
+
seletor?: string
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
/**
|
|
1533
|
+
* The style as it will print: overrides applied, then (for `pb`) the grey
|
|
1534
|
+
* conversion. Takes a preset or a style id; a deprecated id resolves to its
|
|
1535
|
+
* current style (`resolvePrintStyle('economist').name === 'semanario'`).
|
|
1536
|
+
*/
|
|
1537
|
+
export function resolvePrintStyle(style: PrintStyle | PrintStyleId, options: Omit<PrintCssOptions, 'seletor'> = {}): PrintStyle {
|
|
1538
|
+
const base = typeof style === 'string' ? printPresetById(style) : style
|
|
1539
|
+
const merged = mergePrintStyle(base, options.overrides)
|
|
1540
|
+
if (!options.pb) return merged
|
|
1541
|
+
return { ...merged, cor: printStyleCoresPb(merged) }
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
const kebab: Record<Exclude<keyof PrintCores, 'prova' | 'ornamento'>, string> = {
|
|
1545
|
+
papel: 'papel',
|
|
1546
|
+
tinta: 'tinta',
|
|
1547
|
+
tinta2: 'tinta-2',
|
|
1548
|
+
tinta3: 'tinta-3',
|
|
1549
|
+
linha: 'linha',
|
|
1550
|
+
destaque: 'destaque',
|
|
1551
|
+
destaque2: 'destaque-2',
|
|
1552
|
+
marcaTexto: 'marca-texto',
|
|
1553
|
+
contexto: 'contexto',
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
const num = (n: number) => String(Math.round(n * 1000) / 1000)
|
|
1557
|
+
|
|
1558
|
+
/** Custom properties of a resolved style, in a stable order. */
|
|
1559
|
+
export function printStyleVariables(style: PrintStyle): Array<[string, string]> {
|
|
1560
|
+
const vars: Array<[string, string]> = []
|
|
1561
|
+
for (const k of ['titulo', 'corpo', 'numero', 'rotulo', 'anotacao', 'mono'] as const) vars.push([`--ty-print-fonte-${k}`, style.fontes[k]])
|
|
1562
|
+
for (const [k, name] of Object.entries(kebab) as Array<[keyof typeof kebab, string]>) vars.push([`--ty-print-${name}`, style.cor[k]])
|
|
1563
|
+
for (const e of ESTADOS_PROVA) vars.push([`--ty-print-prova-${e}`, style.cor.prova[e]])
|
|
1564
|
+
vars.push(['--ty-print-textura-intensidade', num(style.papel.intensidade)])
|
|
1565
|
+
vars.push(['--ty-print-traco', `${num(style.traco.largura)}mm`])
|
|
1566
|
+
vars.push(['--ty-print-tremor', num(style.traco.tremor)])
|
|
1567
|
+
vars.push(['--ty-print-raio', `${num(style.raio)}mm`])
|
|
1568
|
+
const minusculas = style.estrutura.minusculas
|
|
1569
|
+
vars.push(['--ty-print-titulo-caixa', style.caixaAlta ? 'uppercase' : minusculas ? 'lowercase' : 'none'])
|
|
1570
|
+
vars.push(['--ty-print-titulo-espaco', style.caixaAlta ? '0.04em' : 'normal'])
|
|
1571
|
+
const rc = style.estrutura.rotuloCaixa
|
|
1572
|
+
vars.push(['--ty-print-rotulo-caixa', minusculas ? 'lowercase' : rc === 'alta' ? 'uppercase' : 'none'])
|
|
1573
|
+
vars.push(['--ty-print-rotulo-variante', rc === 'versalete' ? 'small-caps' : 'normal'])
|
|
1574
|
+
vars.push(['--ty-print-rotulo-espaco', rc === 'normal' ? 'normal' : '0.07em'])
|
|
1575
|
+
const orn = style.cor.ornamento ?? []
|
|
1576
|
+
const reserva = [style.cor.destaque, style.cor.destaque2, style.cor.tinta, style.cor.marcaTexto]
|
|
1577
|
+
for (let i = 0; i < 4; i++) vars.push([`--ty-print-ornamento-${i + 1}`, orn[i] ?? reserva[i]!])
|
|
1578
|
+
const cr = style.estrutura.corRotulo
|
|
1579
|
+
if (cr) {
|
|
1580
|
+
const fundo = cr === 'sustentada' || cr === 'refutada' ? style.cor.prova[cr] : style.cor[cr]
|
|
1581
|
+
vars.push(['--ty-print-rotulo-fundo', fundo])
|
|
1582
|
+
vars.push(['--ty-print-rotulo-tinta', luminance(parseColor(fundo)) > 0.4 ? style.cor.tinta : style.cor.papel])
|
|
1583
|
+
}
|
|
1584
|
+
return vars
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
/**
|
|
1588
|
+
* CSS custom properties (`--ty-print-*`) of a style on
|
|
1589
|
+
* `[data-ty-print-style="<name>"]`, with the editor's overrides and, when
|
|
1590
|
+
* `pb` is set, the black and white colours.
|
|
1591
|
+
*/
|
|
1592
|
+
export function printStyleToCss(style: PrintStyle, options: PrintCssOptions = {}): string {
|
|
1593
|
+
const resolved = resolvePrintStyle(style, options)
|
|
1594
|
+
const selector = options.seletor ?? `[data-ty-print-style="${style.name}"]`
|
|
1595
|
+
const body = printStyleVariables(resolved)
|
|
1596
|
+
.map(([n, v]) => ` ${n}: ${v};`)
|
|
1597
|
+
.join('\n')
|
|
1598
|
+
return `${selector} {\n${body}\n}\n`
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
/** Google Fonts css2 URL for a style's families (null when it uses system fonts only). */
|
|
1602
|
+
export function googleFontsUrl(style: Pick<PrintStyle, 'googleFonts'>): string | null {
|
|
1603
|
+
if (!style.googleFonts.length) return null
|
|
1604
|
+
const families = style.googleFonts.map((spec) => `family=${encodeURIComponent(spec).replace(/%20/g, '+').replace(/%3A/g, ':').replace(/%40/g, '@').replace(/%3B/g, ';').replace(/%2C/g, ',')}`)
|
|
1605
|
+
return `https://fonts.googleapis.com/css2?${families.join('&')}&display=swap`
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
/** True when the paper is dark (the brand seal and logo then use the light mono version). */
|
|
1609
|
+
export function papelEscuro(style: Pick<PrintStyle, 'cor'>): boolean {
|
|
1610
|
+
return luminance(parseColor(style.cor.papel)) < 0.2
|
|
1611
|
+
}
|