@terrahq/design-system 0.2.0 → 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/README.md +104 -23
- package/dist/design-system.umd.cjs +1 -1
- package/dist/icons.css +13 -0
- package/dist/style.css +1 -1
- package/dist/terraforms.css +12 -0
- package/package.json +10 -8
- package/src/scss/framework/components/_components.scss +10 -0
- package/src/scss/framework/components/_helpers.scss +17 -0
- package/src/scss/framework/components/btn.scss +106 -0
- package/src/scss/framework/components/card.scss +39 -0
- package/src/scss/framework/components/icon.scss +25 -0
- package/src/scss/framework/components/tag.scss +26 -0
- package/src/scss/framework/components/terraform.scss +31 -0
- package/src/scss/framework/utilities/_motion.scss +40 -1
- package/src/scss/framework/utilities/_order.scss +9 -5
- package/src/scss/framework/utilities/_text-decoration.scss +11 -0
- package/src/scss/framework/utilities/_utilities.scss +1 -0
- package/src/scss/index.scss +1 -0
- package/dist/design-system.js +0 -4
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
.c--terraform-a--boba{--c-terraform:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20660%20660%22%3E%3Cpath%20d%3D%22M330%20161.9C312.7%20161.9%20298.8%20175.9%20298.8%20193.1C298.8%20210.4%20312.7%20224.4%20330%20224.4C347.3%20224.4%20361.3%20210.4%20361.3%20193.1C361.3%20175.9%20347.3%20161.9%20330%20161.9M330%2025C312.7%2025%20298.8%2039%20298.8%2056.3C298.8%2073.5%20312.7%2087.5%20330%2087.5C347.3%2087.5%20361.3%2073.5%20361.3%2056.3C361.3%2039%20347.3%2025%20330%2025M448.9%20255.3C461.1%20243.1%20461.1%20223.3%20448.9%20211.1C436.7%20198.9%20416.9%20198.9%20404.7%20211.1C392.5%20223.3%20392.5%20243.1%20404.7%20255.3C416.9%20267.5%20436.7%20267.5%20448.9%20255.3M545.7%20158.5C557.9%20146.3%20557.9%20126.5%20545.7%20114.3C533.5%20102.1%20513.7%20102.1%20501.5%20114.3C489.3%20126.5%20489.3%20146.3%20501.5%20158.5C513.7%20170.7%20533.5%20170.7%20545.7%20158.5M466.9%20298.8C449.6%20298.8%20435.6%20312.7%20435.6%20330C435.6%20347.3%20449.6%20361.3%20466.9%20361.3C484.1%20361.3%20498.1%20347.3%20498.1%20330C498.1%20312.7%20484.1%20298.8%20466.9%20298.8M603.8%20298.8C586.5%20298.8%20572.5%20312.7%20572.5%20330C572.5%20347.3%20586.5%20361.3%20603.8%20361.3C621%20361.3%20635%20347.3%20635%20330C635%20312.7%20621%20298.8%20603.8%20298.8M448.9%20448.9C461.1%20436.7%20461.1%20416.9%20448.9%20404.7C436.7%20392.5%20416.9%20392.5%20404.7%20404.7C392.5%20416.9%20392.5%20436.7%20404.7%20448.9C416.9%20461.1%20436.7%20461.1%20448.9%20448.9M501.5%20501.5C489.3%20513.7%20489.3%20533.5%20501.5%20545.7C513.7%20557.9%20533.5%20557.9%20545.7%20545.7C557.9%20533.5%20557.9%20513.7%20545.7%20501.5C533.5%20489.3%20513.7%20489.3%20501.5%20501.5M330%20435.6C312.7%20435.6%20298.8%20449.6%20298.8%20466.9C298.8%20484.1%20312.7%20498.1%20330%20498.1C347.3%20498.1%20361.3%20484.1%20361.3%20466.9C361.3%20449.6%20347.3%20435.6%20330%20435.6M330%20572.5C312.7%20572.5%20298.8%20586.5%20298.8%20603.8C298.8%20621%20312.7%20635%20330%20635C347.3%20635%20361.3%20621%20361.3%20603.8C361.3%20586.5%20347.3%20572.5%20330%20572.5M211.1%20404.7C198.9%20416.9%20198.9%20436.7%20211.1%20448.9C223.3%20461.1%20243.1%20461.1%20255.3%20448.9C267.5%20436.7%20267.5%20416.9%20255.3%20404.7C243.1%20392.5%20223.3%20392.5%20211.1%20404.7M114.3%20501.5C102.1%20513.7%20102.1%20533.5%20114.3%20545.7C126.5%20557.9%20146.3%20557.9%20158.5%20545.7C170.7%20533.5%20170.7%20513.7%20158.5%20501.5C146.3%20489.3%20126.5%20489.3%20114.3%20501.5M224.4%20330C224.4%20312.7%20210.4%20298.8%20193.1%20298.8C175.9%20298.8%20161.9%20312.7%20161.9%20330C161.9%20347.3%20175.9%20361.3%20193.1%20361.3C210.4%20361.3%20224.4%20347.3%20224.4%20330M87.5%20330C87.5%20312.7%2073.5%20298.8%2056.3%20298.8C39%20298.8%2025%20312.7%2025%20330C25%20347.3%2039%20361.3%2056.3%20361.3C73.5%20361.3%2087.5%20347.3%2087.5%20330M211.1%20211.1C198.9%20223.3%20198.9%20243.1%20211.1%20255.3C223.3%20267.5%20243.1%20267.5%20255.3%20255.3C267.5%20243.1%20267.5%20223.3%20255.3%20211.1C243.1%20198.9%20223.3%20198.9%20211.1%20211.1M158.5%20158.5C170.7%20146.3%20170.7%20126.5%20158.5%20114.3C146.3%20102.1%20126.5%20102.1%20114.3%20114.3C102.1%20126.5%20102.1%20146.3%20114.3%20158.5C126.5%20170.7%20146.3%20170.7%20158.5%20158.5M237.2%20106C253.1%2099.4%20260.7%2081.1%20254.1%2065.1C247.5%2049.2%20229.2%2041.6%20213.3%2048.2C197.3%2054.8%20189.8%2073.1%20196.4%2089.1C203%20105%20221.3%20112.6%20237.2%20106M422.8%20106C438.8%20112.6%20457%20105%20463.6%2089.1C470.2%2073.1%20462.7%2054.8%20446.7%2048.2C430.8%2041.6%20412.5%2049.2%20405.9%2065.1C399.3%2081.1%20406.9%2099.4%20422.8%20106M554%20237.2C560.6%20253.1%20578.9%20260.7%20594.9%20254.1C610.8%20247.5%20618.4%20229.2%20611.8%20213.3C605.2%20197.3%20586.9%20189.8%20571%20196.4C555%20203%20547.4%20221.3%20554%20237.2M594.9%20405.9C578.9%20399.3%20560.6%20406.9%20554%20422.8C547.4%20438.8%20555%20457%20571%20463.6C586.9%20470.2%20605.2%20462.7%20611.8%20446.7C618.4%20430.8%20610.8%20412.5%20594.9%20405.9M422.8%20554C406.9%20560.6%20399.3%20578.9%20405.9%20594.9C412.5%20610.8%20430.8%20618.4%20446.7%20611.8C462.7%20605.2%20470.2%20586.9%20463.6%20571C457%20555%20438.8%20547.4%20422.8%20554M237.2%20554C221.3%20547.4%20203%20555%20196.4%20571C189.8%20586.9%20197.3%20605.2%20213.3%20611.8C229.2%20618.4%20247.5%20610.8%20254.1%20594.9C260.7%20578.9%20253.1%20560.6%20237.2%20554M106%20422.8C99.4%20406.9%2081.1%20399.3%2065.1%20405.9C49.2%20412.5%2041.6%20430.8%2048.2%20446.7C54.8%20462.7%2073.1%20470.2%2089.1%20463.6C105%20457%20112.6%20438.8%20106%20422.8M65.1%20254.1C81.1%20260.7%2099.3%20253.1%20106%20237.2C112.6%20221.3%20105%20203%2089.1%20196.4C73.1%20189.8%2054.8%20197.3%2048.2%20213.3C41.6%20229.2%2049.2%20247.5%2065.1%20254.1%22%2F%3E%3C%2Fsvg%3E")}
|
|
2
|
+
.c--terraform-a--diana{--c-terraform:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20660%20660%22%3E%3Cpath%20d%3D%22M330%2025C161.8%2025%2025%20161.8%2025%20330C25%20498.2%20161.8%20635%20330%20635C498.2%20635%20635%20498.2%20635%20330C635%20161.8%20498.2%2025%20330%2025M330%20597.5C182.5%20597.5%2062.5%20477.5%2062.5%20330C62.5%20182.5%20182.5%2062.5%20330%2062.5C477.5%2062.5%20597.5%20182.5%20597.5%20330C597.5%20477.5%20477.5%20597.5%20330%20597.5M330%20141.1C225.8%20141.1%20141.1%20225.8%20141.1%20330C141.1%20434.2%20225.8%20519%20330%20519C434.2%20519%20519%20434.2%20519%20330C519%20225.8%20434.2%20141.1%20330%20141.1M330%20481.5C246.5%20481.5%20178.5%20413.5%20178.5%20330C178.5%20246.5%20246.5%20178.5%20330%20178.5C413.5%20178.5%20481.5%20246.5%20481.5%20330C481.5%20413.5%20413.5%20481.5%20330%20481.5M330%20253.2C287.7%20253.2%20253.2%20287.7%20253.2%20330C253.2%20372.3%20287.7%20406.8%20330%20406.8C372.3%20406.8%20406.8%20372.3%20406.8%20330C406.8%20287.7%20372.3%20253.2%20330%20253.2M330%20369.3C308.3%20369.3%20290.7%20351.7%20290.7%20330C290.7%20308.3%20308.3%20290.7%20330%20290.7C351.7%20290.7%20369.3%20308.3%20369.3%20330C369.3%20351.7%20351.7%20369.3%20330%20369.3%22%2F%3E%3C%2Fsvg%3E")}
|
|
3
|
+
.c--terraform-a--ebb{--c-terraform:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20660%20660%22%3E%3Cpath%20d%3D%22M610.9%2037C600.3%2037%20591.7%2045.6%20591.7%2056.1L591.7%20540.6C591.7%20568.8%20568.8%20591.7%20540.6%20591.7C512.5%20591.7%20489.6%20568.8%20489.6%20540.6L489.6%20119.4C489.6%2070.1%20449.5%2030%20400.2%2030C350.9%2030%20310.9%2070.1%20310.9%20119.4L310.9%20540.6C310.9%20568.8%20287.9%20591.7%20259.8%20591.7C231.6%20591.7%20208.7%20568.8%20208.7%20540.6L208.7%20119.4C208.7%2070.1%20168.6%2030%20119.3%2030C70.1%2030%2030%2070.1%2030%20119.4L30%20603.9C30%20614.4%2038.6%20623%2049.1%20623C59.7%20623%2068.3%20614.4%2068.3%20603.9L68.3%20119.4C68.3%2091.2%2091.2%2068.3%20119.3%2068.3C147.5%2068.3%20170.4%2091.2%20170.4%20119.4L170.4%20540.6C170.4%20589.9%20210.5%20630%20259.8%20630C309.1%20630%20349.1%20589.9%20349.1%20540.6L349.1%20119.4C349.1%2091.2%20372.1%2068.3%20400.2%2068.3C428.4%2068.3%20451.3%2091.2%20451.3%20119.4L451.3%20540.6C451.3%20589.9%20491.4%20630%20540.6%20630C589.9%20630%20630%20589.9%20630%20540.6L630%2056.1C630%2045.6%20621.4%2037%20610.9%2037%22%2F%3E%3C%2Fsvg%3E")}
|
|
4
|
+
.c--terraform-a--forma{--c-terraform:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20660%20660%22%3E%3Cpath%20d%3D%22M628.2%20284.2L516.7%20269.7C516.6%20269.6%20516.4%20269.2%20516.6%20268.9L598.2%20191.8C615.6%20175.4%20617.9%20150.4%20603.9%20131C589.8%20111.7%20565.3%20106.2%20544.3%20117.6L445.6%20171.5C445.4%20171.5%20445.1%20171.2%20445.1%20170.9L465.8%2060.5C470.1%2037%20457.3%2015.5%20434.6%208.1C411.9%200.7%20388.8%2010.6%20378.6%2032.2L330.4%20133.6L330.3%20133.8C330.2%20133.9%20329.8%20133.9%20329.6%20133.6L281.4%2032.2C271.2%2010.6%20248.1%200.7%20225.4%208.1C202.7%2015.5%20189.9%2037%20194.3%2060.5L214.9%20171.1C214.9%20171.3%20214.6%20171.5%20214.2%20171.4L115.7%20117.6C94.7%20106.2%2070.2%20111.7%2056.2%20131C42.1%20150.4%2044.4%20175.4%2061.8%20191.8L143.5%20269.1C143.6%20269.2%20143.4%20269.6%20143.1%20269.7L31.8%20284.2C8.1%20287.2%20-8.5%20306.1%20-8.5%20330C-8.5%20353.9%208.1%20372.8%2031.8%20375.8L143.3%20390.3C143.4%20390.4%20143.6%20390.8%20143.4%20391.1L61.8%20468.2C44.4%20484.6%2042.1%20509.6%2056.2%20529C70.2%20548.3%2094.7%20553.8%20115.7%20542.4L214.4%20488.5C214.6%20488.5%20214.9%20488.8%20214.9%20489.1L194.3%20599.5C189.9%20623%20202.7%20644.5%20225.4%20651.9C230.4%20653.6%20235.5%20654.4%20240.4%20654.4C257.7%20654.4%20273.5%20644.6%20281.4%20627.8L329.7%20526.2C329.8%20526.1%20330.2%20526.1%20330.4%20526.4L378.6%20627.8C388.8%20649.4%20411.9%20659.3%20434.6%20651.9C457.3%20644.5%20470.1%20623%20465.8%20599.5L445.1%20488.9C445.1%20488.8%20445.4%20488.5%20445.8%20488.6L544.3%20542.4C565.3%20553.8%20589.8%20548.3%20603.9%20529C617.9%20509.6%20615.6%20484.6%20598.2%20468.2L516.5%20390.9C516.4%20390.8%20516.6%20390.4%20516.9%20390.3L628.2%20375.8C651.9%20372.8%20668.5%20353.9%20668.5%20330C668.5%20306.1%20651.9%20287.2%20628.2%20284.2M623.5%20339.5L512.2%20354C497.9%20355.8%20486.2%20365.5%20481.7%20379.3C477.2%20393%20481%20407.8%20491.5%20417.7L573.1%20494.8C578.4%20499.9%20576.1%20504.9%20574.2%20507.4C572.4%20510%20568.3%20513.8%20561.9%20510.2L463.3%20456.5C450.6%20449.5%20435.5%20450.5%20423.8%20459C412.1%20467.5%20406.4%20481.6%20409.1%20495.9L429.8%20606.2C431.1%20613.4%20426.3%20616.1%20423.3%20617.1C420.3%20618.1%20414.8%20618.7%20411.6%20612.1L363.5%20510.7C357.3%20497.6%20344.5%20489.5%20330%20489.5C315.5%20489.5%20302.7%20497.6%20296.5%20510.7L248.4%20612.1C245.2%20618.7%20239.7%20618.1%20236.7%20617.1C233.7%20616.1%20228.9%20613.4%20230.3%20606.2L250.9%20495.9C253.6%20481.7%20248%20467.5%20236.3%20459C229.7%20454.3%20222.1%20451.9%20214.5%20451.9C208.4%20451.9%20202.3%20453.4%20196.7%20456.5L98.1%20510.2C91.7%20513.7%2087.6%20510%2085.8%20507.4C83.9%20504.9%2081.6%20499.9%2086.9%20494.8L168.5%20417.7C179%20407.8%20182.8%20393%20178.3%20379.3C173.8%20365.5%20162.2%20355.8%20147.8%20354L36.5%20339.5C29.2%20338.6%2028.1%20333.1%2028.1%20330C28.1%20326.9%2029.2%20321.4%2036.5%20320.5L147.8%20306C162.2%20304.2%20173.8%20294.5%20178.3%20280.7C182.8%20266.9%20179%20252.2%20168.5%20242.3L86.9%20165.2C81.6%20160.1%2083.9%20155.1%2085.8%20152.6C87.6%20150%2091.7%20146.3%2098.1%20149.8L196.7%20203.5C209.4%20210.4%20224.6%20209.5%20236.3%20201C248%20192.5%20253.6%20178.3%20250.9%20164.1L230.2%2053.8C228.9%2046.6%20233.7%2043.9%20236.7%2042.9C239.7%2041.9%20245.2%2041.3%20248.4%2047.9L296.5%20149.3C302.7%20162.4%20315.5%20170.5%20330%20170.5C344.5%20170.5%20357.3%20162.4%20363.5%20149.3L411.6%2047.9C414.8%2041.3%20420.3%2041.9%20423.3%2042.9C426.3%2043.9%20431.1%2046.6%20429.8%2053.8L409.1%20164.1C406.4%20178.4%20412.1%20192.5%20423.8%20201C435.5%20209.5%20450.6%20210.4%20463.3%20203.5L561.9%20149.8C568.3%20146.3%20572.4%20150%20574.2%20152.6C576.1%20155.1%20578.4%20160.1%20573.1%20165.2L491.5%20242.3C481%20252.2%20477.2%20266.9%20481.7%20280.7C486.2%20294.5%20497.9%20304.2%20512.2%20306L623.5%20320.5C630.8%20321.4%20631.9%20326.9%20631.9%20330C631.9%20333.1%20630.8%20338.6%20623.5%20339.5%22%2F%3E%3C%2Fsvg%3E")}
|
|
5
|
+
.c--terraform-a--gollum{--c-terraform:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20660%20660%22%3E%3Cpath%20d%3D%22M503.5%20330L649.5%2071.2C652.9%2065.3%20652.8%2057.9%20649.4%2052C645.9%2046.1%20639.6%2042.5%20632.8%2042.5L27.2%2042.5C20.4%2042.5%2014.1%2046.1%2010.6%2052C7.2%2057.9%207.1%2065.3%2010.5%2071.2L156.5%20330L10.5%20588.8C7.1%20594.8%207.2%20602%2010.6%20608C14.1%20613.9%2020.4%20617.5%2027.2%20617.5L632.8%20617.5C639.6%20617.5%20645.9%20613.9%20649.4%20608C652.8%20602%20652.9%20594.8%20649.5%20588.8ZM481.4%20290.8L363%2081L599.8%2081ZM459.3%20330L330%20559.1L200.7%20330L330%20100.9ZM60.2%2081L297%2081L178.6%20290.8ZM178.6%20369.2L297%20579L60.2%20579ZM363%20579L481.4%20369.2L599.8%20579Z%22%2F%3E%3C%2Fsvg%3E")}
|
|
6
|
+
.c--terraform-a--infinito{--c-terraform:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20660%20660%22%3E%3Cpath%20d%3D%22M622.6%20349.9C633.6%20349.9%20642.5%20341%20642.5%20330C642.5%20319%20633.6%20310.1%20622.6%20310.1L520.8%20310.1L520.8%20178.9L622.6%20178.9C633.6%20178.9%20642.5%20170%20642.5%20159C642.5%20148.1%20633.6%20139.2%20622.6%20139.2L520.8%20139.2L520.8%2037.3C520.8%2026.4%20511.9%2017.5%20501%2017.5C490%2017.5%20481.1%2026.4%20481.1%2037.3L481.1%20139.2L349.9%20139.2L349.9%2037.3C349.9%2026.4%20341%2017.5%20330%2017.5C319%2017.5%20310.1%2026.4%20310.1%2037.3L310.1%20139.2L178.9%20139.2L178.9%2037.3C178.9%2026.4%20170%2017.5%20159%2017.5C148.1%2017.5%20139.2%2026.4%20139.2%2037.3L139.2%20139.2L37.3%20139.2C26.4%20139.2%2017.5%20148.1%2017.5%20159C17.5%20170%2026.4%20178.9%2037.3%20178.9L139.2%20178.9L139.2%20310.1L37.3%20310.1C26.4%20310.1%2017.5%20319%2017.5%20330C17.5%20341%2026.4%20349.9%2037.3%20349.9L139.2%20349.9L139.2%20481.1L37.3%20481.1C26.4%20481.1%2017.5%20490%2017.5%20501C17.5%20511.9%2026.4%20520.8%2037.3%20520.8L139.2%20520.8L139.2%20622.6C139.2%20633.6%20148.1%20642.5%20159%20642.5C170%20642.5%20178.9%20633.6%20178.9%20622.6L178.9%20520.8L310.1%20520.8L310.1%20622.6C310.1%20633.6%20319%20642.5%20330%20642.5C341%20642.5%20349.9%20633.6%20349.9%20622.6L349.9%20520.8L481.1%20520.8L481.1%20622.6C481.1%20633.6%20490%20642.5%20501%20642.5C511.9%20642.5%20520.8%20633.6%20520.8%20622.6L520.8%20520.8L622.6%20520.8C633.6%20520.8%20642.5%20511.9%20642.5%20501C642.5%20490%20633.6%20481.1%20622.6%20481.1L520.8%20481.1L520.8%20349.9ZM481.1%20310.1L349.9%20310.1L349.9%20178.9L481.1%20178.9ZM481.1%20178.9M178.9%20178.9L310.1%20178.9L310.1%20310.1L178.9%20310.1ZM178.9%20349.9L310.1%20349.9L310.1%20481.1L178.9%20481.1ZM178.9%20481.1M481.1%20481.1L349.9%20481.1L349.9%20349.9L481.1%20349.9Z%22%2F%3E%3C%2Fsvg%3E")}
|
|
7
|
+
.c--terraform-a--melos{--c-terraform:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20660%20660%22%3E%3Cpath%20d%3D%22M442.4%2030C400.3%2030%20361.3%2043.9%20330%2067.4C298.7%2043.9%20259.8%2030%20217.6%2030C114.2%2030%2030%20114.2%2030%20217.6L30%20442.4C30%20545.8%20114.2%20630%20217.6%20630C259.8%20630%20298.7%20616.1%20330%20592.6C361.3%20616.1%20400.3%20630%20442.4%20630C545.8%20630%20630%20545.8%20630%20442.4L630%20217.6C630%20114.2%20545.8%2030%20442.4%2030M330%20540.6C307%20514.4%20293%20480%20293%20442.4L293%20217.6C293%20180%20307%20145.6%20330%20119.4C353%20145.6%20367%20180%20367%20217.6L367%20442.4C367%20480%20353%20514.4%20330%20540.6M68.3%20442.4L68.3%20217.6C68.3%20135.3%20135.3%2068.3%20217.6%2068.3C248.7%2068.3%20277.5%2077.8%20301.4%2094C272.4%20127%20254.7%20170.3%20254.7%20217.6L254.7%20442.4C254.7%20489.7%20272.4%20533%20301.4%20566C277.5%20582.2%20248.7%20591.7%20217.6%20591.7C135.3%20591.7%2068.3%20524.7%2068.3%20442.4M591.7%20442.4C591.7%20524.7%20524.7%20591.7%20442.4%20591.7C411.3%20591.7%20382.5%20582.2%20358.6%20566C387.6%20533%20405.3%20489.7%20405.3%20442.4L405.3%20217.6C405.3%20170.3%20387.6%20127%20358.6%2094C382.5%2077.8%20411.3%2068.3%20442.4%2068.3C524.7%2068.3%20591.7%20135.3%20591.7%20217.6Z%22%2F%3E%3C%2Fsvg%3E")}
|
|
8
|
+
.c--terraform-a--mendia{--c-terraform:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20660%20660%22%3E%3Cpath%20d%3D%22M602.8%2035.2L57.2%2035.2C46.6%2035.2%2038%2043.9%2038%2054.6C38%2065.3%2046.6%2073.9%2057.2%2073.9L583.6%2073.9L583.6%20605.4C583.6%20616.1%20592.2%20624.8%20602.8%20624.8C613.4%20624.8%20622%20616.1%20622%20605.4L622%2054.6C622%2043.9%20613.4%2035.2%20602.8%2035.2M480.7%20158.5L57.2%20158.5C46.6%20158.5%2038%20167.2%2038%20177.9C38%20188.6%2046.6%20197.2%2057.2%20197.2L461.5%20197.2L461.5%20605.4C461.5%20616.1%20470.1%20624.8%20480.7%20624.8C491.3%20624.8%20499.9%20616.1%20499.9%20605.4L499.9%20177.9C499.9%20167.2%20491.3%20158.5%20480.7%20158.5M358.6%20281.8L57.2%20281.8C46.6%20281.8%2038%20290.5%2038%20301.1C38%20311.8%2046.6%20320.5%2057.2%20320.5L339.4%20320.5L339.4%20605.4C339.4%20616.1%20348%20624.8%20358.6%20624.8C369.2%20624.8%20377.8%20616.1%20377.8%20605.4L377.8%20301.1C377.8%20290.5%20369.2%20281.8%20358.6%20281.8M236.5%20405.1L57.2%20405.1C46.6%20405.1%2038%20413.7%2038%20424.4C38%20435.1%2046.6%20443.8%2057.2%20443.8L217.3%20443.8L217.3%20605.4C217.3%20616.1%20225.9%20624.8%20236.5%20624.8C247.1%20624.8%20255.6%20616.1%20255.6%20605.4L255.6%20424.4C255.6%20413.7%20247.1%20405.1%20236.5%20405.1M114.3%20528.4L57.2%20528.4C46.6%20528.4%2038%20537%2038%20547.7C38%20558.4%2046.6%20567.1%2057.2%20567.1L95.2%20567.1L95.2%20605.4C95.2%20616.1%20103.7%20624.8%20114.3%20624.8C124.9%20624.8%20133.5%20616.1%20133.5%20605.4L133.5%20547.7C133.5%20537%20124.9%20528.4%20114.3%20528.4%22%2F%3E%3C%2Fsvg%3E")}
|
|
9
|
+
.c--terraform-a--mistyk{--c-terraform:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20660%20660%22%3E%3Cpath%20d%3D%22M115.7%20314.4C87.4%20293.4%2062.9%20275.2%2062.9%20239.8C62.9%20204.4%2087.4%20186.2%20115.7%20165.1C147.4%20141.5%20183.5%20114.6%20183.5%2060.3C183.5%2050%20175.1%2041.6%20164.7%2041.6C154.3%2041.6%20145.9%2050%20145.9%2060.3C145.9%2095.8%20121.5%20113.9%2093.2%20135C61.4%20158.7%2025.4%20185.5%2025.4%20239.8C25.4%20294.1%2061.4%20320.9%2093.2%20344.6C121.5%20365.6%20145.9%20383.8%20145.9%20419.2C145.9%20454.7%20121.5%20472.8%2093.2%20493.9C61.4%20517.6%2025.4%20544.4%2025.4%20598.7C25.4%20609.1%2033.8%20617.5%2044.2%20617.5C54.5%20617.5%2062.9%20609.1%2062.9%20598.7C62.9%20563.3%2087.4%20545.1%20115.7%20524C147.4%20500.4%20183.5%20473.5%20183.5%20419.2C183.5%20364.9%20147.4%20338.1%20115.7%20314.4M266%20314.8C237.7%20293.7%20213.3%20275.5%20213.3%20240.1C213.3%20204.7%20237.7%20186.5%20266%20165.4C297.8%20141.8%20333.9%20115%20333.9%2060.7C333.9%2050.3%20325.5%2041.9%20315.1%2041.9C304.7%2041.9%20296.3%2050.3%20296.3%2060.7C296.3%2096.1%20271.9%20114.3%20243.6%20135.3C211.8%20159%20175.7%20185.8%20175.7%20240.1C175.7%20294.4%20211.8%20321.2%20243.6%20344.9C271.9%20365.9%20296.3%20384.1%20296.3%20419.6C296.3%20455%20271.9%20473.2%20243.6%20494.2C211.8%20517.9%20175.7%20544.7%20175.7%20599C175.7%20609.4%20184.1%20617.8%20194.5%20617.8C204.9%20617.8%20213.3%20609.4%20213.3%20599C213.3%20563.6%20237.8%20545.4%20266%20524.4C297.8%20500.7%20333.9%20473.9%20333.9%20419.6C333.9%20365.3%20297.8%20338.4%20266%20314.8M416.4%20315.1C388.1%20294%20363.7%20275.8%20363.7%20240.4C363.7%20205%20388.1%20186.8%20416.4%20165.8C448.2%20142.1%20484.3%20115.3%20484.3%2061C484.3%2050.6%20475.9%2042.2%20465.5%2042.2C455.1%2042.2%20446.7%2050.6%20446.7%2061C446.7%2096.4%20422.3%20114.6%20394%20135.6C362.2%20159.3%20326.1%20186.1%20326.1%20240.4C326.1%20294.7%20362.2%20321.5%20394%20345.2C422.3%20366.3%20446.7%20384.4%20446.7%20419.9C446.7%20455.3%20422.3%20473.5%20394%20494.5C362.2%20518.2%20326.1%20545%20326.1%20599.3C326.1%20609.7%20334.5%20618.1%20344.9%20618.1C355.3%20618.1%20363.7%20609.7%20363.7%20599.3C363.7%20563.9%20388.1%20545.7%20416.4%20524.7C448.2%20501%20484.3%20474.2%20484.3%20419.9C484.3%20365.6%20448.2%20338.7%20416.4%20315.1M566.8%20315.4C538.5%20294.3%20514.1%20276.2%20514.1%20240.7C514.1%20205.3%20538.5%20187.1%20566.8%20166.1C598.6%20142.4%20634.6%20115.6%20634.6%2061.3C634.6%2050.9%20626.2%2042.5%20615.9%2042.5C605.5%2042.5%20597.1%2050.9%20597.1%2061.3C597.1%2096.7%20572.6%20114.9%20544.4%20135.9C512.5%20159.6%20476.5%20186.4%20476.5%20240.7C476.5%20295%20512.5%20321.9%20544.4%20345.5C572.6%20366.6%20597.1%20384.8%20597.1%20420.2C597.1%20455.6%20572.6%20473.8%20544.4%20494.8C512.5%20518.5%20476.5%20545.3%20476.5%20599.7C476.5%20610%20484.9%20618.4%20495.3%20618.4C505.7%20618.4%20514.1%20610%20514.1%20599.7C514.1%20564.2%20538.5%20546%20566.8%20525C598.6%20501.3%20634.6%20474.5%20634.6%20420.2C634.6%20365.9%20598.6%20339.1%20566.8%20315.4%22%2F%3E%3C%2Fsvg%3E")}
|
|
10
|
+
.c--terraform-a--prismo{--c-terraform:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20660%20660%22%3E%3Cpath%20d%3D%22M671.1%20319.2L481.1%2060.2C477.7%2055.5%20472.2%2052.7%20466.4%2052.7L193.6%2052.7C187.8%2052.7%20182.3%2055.5%20178.9%2060.2L-11.1%20319.2C-15.8%20325.6%20-15.8%20334.4%20-11.1%20340.8L178.9%20599.8C182.3%20604.5%20187.8%20607.3%20193.6%20607.3L466.4%20607.3C472.2%20607.3%20477.7%20604.5%20481.1%20599.8L671.1%20340.8C675.8%20334.4%20675.8%20325.6%20671.1%20319.2M620.4%20311.8L399.7%20311.8L352.6%20247.6L463%2097.1ZM367.8%20330L330%20381.6L292.2%20330L330%20278.4ZM330%20216.7L236.5%2089.2L423.5%2089.2ZM197%2097.1L307.4%20247.6L260.3%20311.8L39.6%20311.8ZM39.6%20348.2L260.3%20348.2L307.4%20412.4L197%20562.9ZM330%20443.3L423.5%20570.8L236.5%20570.8ZM463%20562.9L352.6%20412.4L399.7%20348.2L620.4%20348.2Z%22%2F%3E%3C%2Fsvg%3E")}
|
|
11
|
+
.c--terraform-a--punky{--c-terraform:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20660%20660%22%3E%3Cpath%20d%3D%22M629.6%2038.1C629.5%2037.5%20629.3%2036.9%20629.1%2036.4C628.9%2035.7%20628.7%2035%20628.5%2034.3C628.2%2033.7%20627.8%2033%20627.4%2032.3C627.1%2031.9%20626.9%2031.3%20626.6%2030.9C625.1%2028.7%20623.2%2026.8%20621%2025.3C620.5%2025%20620%2024.8%20619.5%2024.5C618.9%2024.1%20618.3%2023.7%20617.6%2023.4C616.9%2023.2%20616.2%2023%20615.5%2022.8C615%2022.7%20614.4%2022.4%20613.8%2022.3C612.5%2022%20611.2%2021.9%20609.9%2021.9L410.4%2021.9C399.3%2021.9%20390.3%2030.9%20390.3%2042.1C390.3%2053.2%20399.3%2062.2%20410.4%2062.2L561.2%2062.2L396.2%20227.3C388.3%20235.1%20388.3%20247.9%20396.2%20255.7C400.1%20259.7%20405.3%20261.6%20410.4%20261.6C415.6%20261.6%20420.7%20259.7%20424.7%20255.7L589.7%2090.7L589.7%20241.5C589.7%20252.6%20598.7%20261.6%20609.9%20261.6C621%20261.6%20630%20252.6%20630%20241.5L630%2042.1C630%2040.7%20629.9%2039.4%20629.6%2038.1M268.8%2036.4C268.6%2035.7%20268.5%2035%20268.2%2034.3C267.9%2033.7%20267.5%2033%20267.1%2032.3C266.9%2031.9%20266.7%2031.3%20266.4%2030.9C264.9%2028.7%20263%2026.8%20260.8%2025.3C260.3%2025%20259.8%2024.8%20259.3%2024.5C258.6%2024.1%20258%2023.7%20257.3%2023.4C256.6%2023.2%20255.9%2023%20255.3%2022.8C254.7%2022.6%20254.1%2022.4%20253.5%2022.3C252.2%2022%20250.9%2021.9%20249.6%2021.9L50.2%2021.9C39%2021.9%2030%2030.9%2030%2042.1C30%2053.2%2039%2062.2%2050.2%2062.2L200.9%2062.2L35.9%20227.3C28%20235.1%2028%20247.9%2035.9%20255.7C39.8%20259.7%2045%20261.6%2050.2%20261.6C55.3%20261.6%2060.5%20259.7%2064.4%20255.7L229.4%2090.7L229.4%20241.5C229.4%20252.6%20238.5%20261.6%20249.6%20261.6C260.7%20261.6%20269.7%20252.6%20269.7%20241.5L269.7%2042.1C269.7%2040.7%20269.6%2039.4%20269.3%2038.1C269.2%2037.5%20269%2036.9%20268.8%2036.4M624.1%20404.3C616.2%20396.4%20603.5%20396.4%20595.6%20404.3L430.6%20569.3L430.6%20418.5C430.6%20407.4%20421.5%20398.4%20410.4%20398.4C399.3%20398.4%20390.3%20407.4%20390.3%20418.5L390.3%20618C390.3%20619.3%20390.4%20620.6%20390.7%20621.9C390.8%20622.5%20391%20623.1%20391.2%20623.6C391.4%20624.3%20391.5%20625%20391.8%20625.6C392.1%20626.4%20392.5%20627%20392.9%20627.7C393.1%20628.1%20393.3%20628.6%20393.6%20629.1C395.1%20631.3%20397%20633.2%20399.2%20634.7C399.7%20635%20400.2%20635.2%20400.7%20635.5C401.4%20635.9%20402%20636.3%20402.7%20636.6C403.4%20636.8%20404%20637%20404.7%20637.2C405.3%20637.4%20405.9%20637.6%20406.5%20637.7C407.8%20638%20409.1%20638.1%20410.4%20638.1L609.9%20638.1C621%20638.1%20630%20629.1%20630%20618C630%20606.8%20621%20597.8%20609.9%20597.8L459%20597.8L624.1%20432.8C632%20424.9%20632%20412.1%20624.1%20404.3M268.8%20412.8C268.6%20412.1%20268.5%20411.5%20268.2%20410.8C267.9%20410.1%20267.5%20409.5%20267.1%20408.8C266.9%20408.3%20266.7%20407.8%20266.4%20407.3C264.9%20405.1%20263%20403.2%20260.8%20401.7C260.3%20401.4%20259.8%20401.2%20259.3%20400.9C258.6%20400.6%20258%20400.2%20257.3%20399.9C256.6%20399.6%20255.9%20399.5%20255.3%20399.3C254.7%20399.1%20254.1%20398.9%20253.5%20398.8C252.2%20398.5%20250.9%20398.4%20249.6%20398.4L50.2%20398.4C39%20398.4%2030%20407.4%2030%20418.5C30%20429.6%2039%20438.6%2050.2%20438.6L200.9%20438.6L35.9%20603.7C28%20611.6%2028%20624.3%2035.9%20632.2C39.8%20636.1%2045%20638.1%2050.2%20638.1C55.3%20638.1%2060.5%20636.1%2064.4%20632.2L229.4%20467.1L229.4%20618C229.4%20629.1%20238.5%20638.1%20249.6%20638.1C260.7%20638.1%20269.7%20629.1%20269.7%20618L269.7%20418.5C269.7%20417.2%20269.6%20415.9%20269.3%20414.6C269.2%20414%20269%20413.4%20268.8%20412.8%22%2F%3E%3C%2Fsvg%3E")}
|
|
12
|
+
.c--terraform-a--stanley{--c-terraform:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20660%20660%22%3E%3Cpath%20d%3D%22M330%20426.9C313.1%20426.9%20299.4%20440.6%20299.4%20457.5C299.4%20474.4%20313.1%20488%20330%20488C346.9%20488%20360.6%20474.4%20360.6%20457.5C360.6%20440.6%20346.9%20426.9%20330%20426.9M330%20554.4C313.1%20554.4%20299.4%20568.1%20299.4%20585C299.4%20601.8%20313.1%20615.5%20330%20615.5C346.9%20615.5%20360.6%20601.8%20360.6%20585C360.6%20568.1%20346.9%20554.4%20330%20554.4M330%2044.5C313.1%2044.5%20299.4%2058.2%20299.4%2075C299.4%2091.9%20313.1%20105.6%20330%20105.6C346.9%20105.6%20360.6%2091.9%20360.6%2075C360.6%2058.2%20346.9%2044.5%20330%2044.5M330%20172C313.1%20172%20299.4%20185.6%20299.4%20202.5C299.4%20219.4%20313.1%20233.1%20330%20233.1C346.9%20233.1%20360.6%20219.4%20360.6%20202.5C360.6%20185.6%20346.9%20172%20330%20172M60.6%20299.4C43.7%20299.4%2030%20313.1%2030%20330C30%20346.9%2043.7%20360.5%2060.6%20360.5C77.4%20360.5%2091.1%20346.9%2091.1%20330C91.1%20313.1%2077.4%20299.4%2060.6%20299.4M60.6%20426.9C43.7%20426.9%2030%20440.6%2030%20457.5C30%20474.4%2043.7%20488%2060.6%20488C77.4%20488%2091.1%20474.4%2091.1%20457.5C91.1%20440.6%2077.4%20426.9%2060.6%20426.9M60.6%20554.4C43.7%20554.4%2030%20568.1%2030%20585C30%20601.8%2043.7%20615.5%2060.6%20615.5C77.4%20615.5%2091.1%20601.8%2091.1%20585C91.1%20568.1%2077.4%20554.4%2060.6%20554.4M60.6%20172C43.7%20172%2030%20185.6%2030%20202.5C30%20219.4%2043.7%20233.1%2060.6%20233.1C77.4%20233.1%2091.1%20219.4%2091.1%20202.5C91.1%20185.6%2077.4%20172%2060.6%20172M195.3%20299.4C178.4%20299.4%20164.7%20313.1%20164.7%20330C164.7%20346.9%20178.4%20360.5%20195.3%20360.5C212.1%20360.5%20225.8%20346.9%20225.8%20330C225.8%20313.1%20212.1%20299.4%20195.3%20299.4M195.3%20426.9C178.4%20426.9%20164.7%20440.6%20164.7%20457.5C164.7%20474.4%20178.4%20488%20195.3%20488C212.1%20488%20225.8%20474.4%20225.8%20457.5C225.8%20440.6%20212.1%20426.9%20195.3%20426.9M195.3%20554.4C178.4%20554.4%20164.7%20568.1%20164.7%20585C164.7%20601.8%20178.4%20615.5%20195.3%20615.5C212.1%20615.5%20225.8%20601.8%20225.8%20585C225.8%20568.1%20212.1%20554.4%20195.3%20554.4M195.3%2044.5C178.4%2044.5%20164.7%2058.2%20164.7%2075C164.7%2091.9%20178.4%20105.6%20195.3%20105.6C212.1%20105.6%20225.8%2091.9%20225.8%2075C225.8%2058.2%20212.1%2044.5%20195.3%2044.5M195.3%20172C178.4%20172%20164.7%20185.6%20164.7%20202.5C164.7%20219.4%20178.4%20233.1%20195.3%20233.1C212.1%20233.1%20225.8%20219.4%20225.8%20202.5C225.8%20185.6%20212.1%20172%20195.3%20172M599.5%20299.4C582.6%20299.4%20568.9%20313.1%20568.9%20330C568.9%20346.9%20582.6%20360.5%20599.5%20360.5C616.3%20360.5%20630%20346.9%20630%20330C630%20313.1%20616.3%20299.4%20599.5%20299.4M599.5%20426.9C582.6%20426.9%20568.9%20440.6%20568.9%20457.5C568.9%20474.4%20582.6%20488%20599.5%20488C616.3%20488%20630%20474.4%20630%20457.5C630%20440.6%20616.3%20426.9%20599.5%20426.9M599.5%20105.6C616.3%20105.6%20630%2091.9%20630%2075C630%2058.2%20616.3%2044.5%20599.5%2044.5C582.6%2044.5%20568.9%2058.2%20568.9%2075C568.9%2091.9%20582.6%20105.6%20599.5%20105.6M599.5%20172C582.6%20172%20568.9%20185.6%20568.9%20202.5C568.9%20219.4%20582.6%20233.1%20599.5%20233.1C616.3%20233.1%20630%20219.4%20630%20202.5C630%20185.6%20616.3%20172%20599.5%20172M464.7%20299.4C447.9%20299.4%20434.2%20313.1%20434.2%20330C434.2%20346.9%20447.9%20360.5%20464.7%20360.5C481.6%20360.5%20495.3%20346.9%20495.3%20330C495.3%20313.1%20481.6%20299.4%20464.7%20299.4M464.7%20426.9C447.9%20426.9%20434.2%20440.6%20434.2%20457.5C434.2%20474.4%20447.9%20488%20464.7%20488C481.6%20488%20495.3%20474.4%20495.3%20457.5C495.3%20440.6%20481.6%20426.9%20464.7%20426.9M464.7%20554.4C447.9%20554.4%20434.2%20568.1%20434.2%20585C434.2%20601.8%20447.9%20615.5%20464.7%20615.5C481.6%20615.5%20495.3%20601.8%20495.3%20585C495.3%20568.1%20481.6%20554.4%20464.7%20554.4M464.7%2044.5C447.9%2044.5%20434.2%2058.2%20434.2%2075C434.2%2091.9%20447.9%20105.6%20464.7%20105.6C481.6%20105.6%20495.3%2091.9%20495.3%2075C495.3%2058.2%20481.6%2044.5%20464.7%2044.5M464.7%20172C447.9%20172%20434.2%20185.6%20434.2%20202.5C434.2%20219.4%20447.9%20233.1%20464.7%20233.1C481.6%20233.1%20495.3%20219.4%20495.3%20202.5C495.3%20185.6%20481.6%20172%20464.7%20172%22%2F%3E%3C%2Fsvg%3E")}
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@terrahq/design-system",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
|
-
".": "./dist/style.css"
|
|
7
|
+
".": "./dist/style.css",
|
|
8
|
+
"./icons.css": "./dist/icons.css",
|
|
9
|
+
"./terraforms.css": "./dist/terraforms.css"
|
|
8
10
|
},
|
|
9
11
|
"scripts": {
|
|
10
12
|
"dev": "vite",
|
|
11
|
-
"build": "tsc && vite build",
|
|
13
|
+
"build": "tsc && vite build && node scripts/build-masks.mjs",
|
|
12
14
|
"preview": "vite preview",
|
|
13
|
-
"check": "node scripts/check-foundation.mjs",
|
|
14
|
-
"docs:dev": "npm run build && npm --prefix docs run dev",
|
|
15
|
-
"docs:build": "npm run build && npm --prefix docs run build",
|
|
15
|
+
"check": "node scripts/check-foundation.mjs && node scripts/check-components.mjs",
|
|
16
16
|
"prepublishOnly": "npm run build && npm run check"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/node": "^20.8.5",
|
|
20
20
|
"typescript": "^5.0.2",
|
|
21
|
-
"vite": "^
|
|
21
|
+
"vite": "^6.4.5"
|
|
22
22
|
},
|
|
23
23
|
"bin": {
|
|
24
24
|
"terra-ds": "bin/terra-ds.mjs"
|
|
@@ -45,7 +45,9 @@
|
|
|
45
45
|
"design-system",
|
|
46
46
|
"css",
|
|
47
47
|
"utility-classes",
|
|
48
|
-
"sass"
|
|
48
|
+
"sass",
|
|
49
|
+
"components",
|
|
50
|
+
"icons"
|
|
49
51
|
],
|
|
50
52
|
"engines": {
|
|
51
53
|
"node": ">=18"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Components: c--name-variant--modifier. Ready-made pieces built from the same tokens as foundation and utilities,
|
|
2
|
+
// so they follow terra.config.js (palette, radius, time and easing).
|
|
3
|
+
// Icon types (c--icon-a--check) and Terraform shapes (c--terraform-a--forma) ship as separate files:
|
|
4
|
+
// dist/icons.css and dist/terraforms.css.
|
|
5
|
+
// Order: icon before button, because the button restyles the icon placed inside it.
|
|
6
|
+
@forward './tag.scss';
|
|
7
|
+
@forward './icon.scss';
|
|
8
|
+
@forward './terraform.scss';
|
|
9
|
+
@forward './card.scss';
|
|
10
|
+
@forward './btn.scss';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "@scss/framework/_var/_vars.scss" as *;
|
|
3
|
+
|
|
4
|
+
// A palette color, or the fallback when a custom palette does not have that letter.
|
|
5
|
+
@function pick($key, $fallback: a) {
|
|
6
|
+
@if map.has-key($color-options, $key) {
|
|
7
|
+
@return map.get($color-options, $key);
|
|
8
|
+
}
|
|
9
|
+
@return map.get($color-options, $fallback);
|
|
10
|
+
}
|
|
11
|
+
// A radius from the config, or the Terra default when a custom radius map does not have that letter.
|
|
12
|
+
@function radius($key, $fallback) {
|
|
13
|
+
@if map.has-key($radius-options, $key) {
|
|
14
|
+
@return map.get($radius-options, $key);
|
|
15
|
+
}
|
|
16
|
+
@return $fallback;
|
|
17
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "@scss/framework/_var/_vars.scss" as *;
|
|
3
|
+
@use "./helpers" as *;
|
|
4
|
+
|
|
5
|
+
// c--btn-a primary · c--btn-b secondary · c--btn-c tertiary.
|
|
6
|
+
// Sizes are modifiers of the variant: --small, --medium (the default) and --large.
|
|
7
|
+
$btn-ink: pick(a);
|
|
8
|
+
$btn-paper: pick(b, a);
|
|
9
|
+
|
|
10
|
+
.c--btn-a,
|
|
11
|
+
.c--btn-b,
|
|
12
|
+
.c--btn-c {
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
gap: $measure;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
height: $measure * 5;
|
|
19
|
+
padding: 0 $measure * 2.5;
|
|
20
|
+
border: 1px solid $btn-ink;
|
|
21
|
+
border-radius: radius(full, 999px);
|
|
22
|
+
font-family: $type-a;
|
|
23
|
+
font-size: 14px;
|
|
24
|
+
font-weight: 500;
|
|
25
|
+
line-height: 1;
|
|
26
|
+
text-decoration: none;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
transition:
|
|
29
|
+
background-color $time-a $ease-standard-a,
|
|
30
|
+
color $time-a $ease-standard-a,
|
|
31
|
+
border-color $time-a $ease-standard-a,
|
|
32
|
+
transform $time-a $ease-standard-a;
|
|
33
|
+
|
|
34
|
+
&:focus-visible {
|
|
35
|
+
outline: 2px solid pick(f);
|
|
36
|
+
outline-offset: 2px;
|
|
37
|
+
}
|
|
38
|
+
&:disabled,
|
|
39
|
+
&[aria-disabled="true"] {
|
|
40
|
+
opacity: 0.5;
|
|
41
|
+
cursor: not-allowed;
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
}
|
|
44
|
+
.c--icon-a {
|
|
45
|
+
width: 1.25em;
|
|
46
|
+
height: 1.25em;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.c--btn-a {
|
|
51
|
+
background: $btn-ink;
|
|
52
|
+
color: $btn-paper;
|
|
53
|
+
}
|
|
54
|
+
.c--btn-b {
|
|
55
|
+
background: transparent;
|
|
56
|
+
color: $btn-ink;
|
|
57
|
+
}
|
|
58
|
+
.c--btn-c {
|
|
59
|
+
padding: 0 $measure * 1.5;
|
|
60
|
+
border-color: transparent;
|
|
61
|
+
background: transparent;
|
|
62
|
+
color: $btn-ink;
|
|
63
|
+
}
|
|
64
|
+
.c--btn-a:active,
|
|
65
|
+
.c--btn-b:active {
|
|
66
|
+
transform: scale(0.98);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@media (hover: hover) {
|
|
70
|
+
.c--btn-a:hover {
|
|
71
|
+
background: transparent;
|
|
72
|
+
color: $btn-ink;
|
|
73
|
+
}
|
|
74
|
+
.c--btn-b:hover {
|
|
75
|
+
background: $btn-ink;
|
|
76
|
+
color: $btn-paper;
|
|
77
|
+
}
|
|
78
|
+
.c--btn-c:hover {
|
|
79
|
+
background: rgba($btn-ink, 0.06);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// --small 32px · --medium 40px (the default, written out so it can be forced) · --large 48px
|
|
84
|
+
@mixin btn-size($v, $name, $height, $font, $px, $px-c) {
|
|
85
|
+
.c--btn-#{$v}--#{$name} {
|
|
86
|
+
height: $height;
|
|
87
|
+
padding-inline: $px;
|
|
88
|
+
font-size: $font;
|
|
89
|
+
@if $v == c {
|
|
90
|
+
padding-inline: $px-c;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
@each $v in (a, b, c) {
|
|
95
|
+
@include btn-size($v, small, $measure * 4, 13px, $measure * 1.75, $measure * 1.5);
|
|
96
|
+
@include btn-size($v, medium, $measure * 5, 14px, $measure * 2.5, $measure * 1.5);
|
|
97
|
+
@include btn-size($v, large, $measure * 6, 16px, $measure * 3.5, $measure * 2);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@media (prefers-reduced-motion: reduce) {
|
|
101
|
+
.c--btn-a,
|
|
102
|
+
.c--btn-b,
|
|
103
|
+
.c--btn-c {
|
|
104
|
+
transition: none;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@use "@scss/framework/_var/_vars.scss" as *;
|
|
2
|
+
@use "./helpers" as *;
|
|
3
|
+
|
|
4
|
+
// c--card-wrapper-a is the box of a card: put anything inside. Flat, as the brand asks: on hover the border turns
|
|
5
|
+
// Noche, with no shadow and no movement.
|
|
6
|
+
// c--card-wrapper-b has no padding, so an image can reach the edge; add the inner space with utilities (u--p-3).
|
|
7
|
+
.c--card-wrapper-a,
|
|
8
|
+
.c--card-wrapper-b {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
min-width: 0;
|
|
13
|
+
border: 1px solid rgba(pick(a), 0.14);
|
|
14
|
+
border-radius: radius(c, $measure * 2);
|
|
15
|
+
background: pick(b, a);
|
|
16
|
+
transition: border-color $time-b $ease-standard-a;
|
|
17
|
+
}
|
|
18
|
+
.c--card-wrapper-a {
|
|
19
|
+
padding: $measure * 3;
|
|
20
|
+
gap: $measure * 1.5;
|
|
21
|
+
}
|
|
22
|
+
.c--card-wrapper-b {
|
|
23
|
+
padding: 0;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@media (hover: hover) {
|
|
28
|
+
.c--card-wrapper-a:hover,
|
|
29
|
+
.c--card-wrapper-b:hover {
|
|
30
|
+
border-color: pick(a);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@media (prefers-reduced-motion: reduce) {
|
|
35
|
+
.c--card-wrapper-a,
|
|
36
|
+
.c--card-wrapper-b {
|
|
37
|
+
transition: none;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// c--icon-a is an icon painted with the text color (a CSS mask), so f--color-* and any color class tint it.
|
|
2
|
+
// The type is a modifier (c--icon-a--check, defined in dist/icons.css) and so is the size.
|
|
3
|
+
// Without icons.css the icon is simply hidden.
|
|
4
|
+
.c--icon-a {
|
|
5
|
+
display: inline-block;
|
|
6
|
+
flex: none;
|
|
7
|
+
width: 24px;
|
|
8
|
+
height: 24px;
|
|
9
|
+
background-color: currentColor;
|
|
10
|
+
-webkit-mask: var(--c-icon, linear-gradient(transparent, transparent)) center / contain no-repeat;
|
|
11
|
+
mask: var(--c-icon, linear-gradient(transparent, transparent)) center / contain no-repeat;
|
|
12
|
+
vertical-align: -0.25em;
|
|
13
|
+
}
|
|
14
|
+
.c--icon-a--small {
|
|
15
|
+
width: 16px;
|
|
16
|
+
height: 16px;
|
|
17
|
+
}
|
|
18
|
+
.c--icon-a--medium {
|
|
19
|
+
width: 24px;
|
|
20
|
+
height: 24px;
|
|
21
|
+
}
|
|
22
|
+
.c--icon-a--large {
|
|
23
|
+
width: 32px;
|
|
24
|
+
height: 32px;
|
|
25
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@use "@scss/framework/_var/_vars.scss" as *;
|
|
2
|
+
@use "./helpers" as *;
|
|
3
|
+
|
|
4
|
+
// An outlined pill with a dot: the one splash of color the brand allows on a label.
|
|
5
|
+
.c--tag-a {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
align-self: flex-start;
|
|
9
|
+
gap: $measure * 0.75;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
height: 22px;
|
|
12
|
+
padding: 0 $measure * 1.125;
|
|
13
|
+
border: 1px solid pick(f);
|
|
14
|
+
border-radius: radius(full, 999px);
|
|
15
|
+
font-size: 12px;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
line-height: 1;
|
|
18
|
+
|
|
19
|
+
&::before {
|
|
20
|
+
content: "";
|
|
21
|
+
width: 7px;
|
|
22
|
+
height: 7px;
|
|
23
|
+
border-radius: 50%;
|
|
24
|
+
background: pick(f);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@use "@scss/framework/_var/_vars.scss" as *;
|
|
2
|
+
|
|
3
|
+
// c--terraform-a is a Terraform painted with the text color. The shape is a modifier (c--terraform-a--forma,
|
|
4
|
+
// defined in dist/terraforms.css) and so is the size. Terraforms are used alone or in a trio:
|
|
5
|
+
// three different shapes in three different colors, inside c--terraform-trio-a.
|
|
6
|
+
.c--terraform-a {
|
|
7
|
+
display: inline-block;
|
|
8
|
+
flex: none;
|
|
9
|
+
width: 64px;
|
|
10
|
+
height: 64px;
|
|
11
|
+
background-color: currentColor;
|
|
12
|
+
-webkit-mask: var(--c-terraform, linear-gradient(transparent, transparent)) center / contain no-repeat;
|
|
13
|
+
mask: var(--c-terraform, linear-gradient(transparent, transparent)) center / contain no-repeat;
|
|
14
|
+
}
|
|
15
|
+
.c--terraform-a--small {
|
|
16
|
+
width: 32px;
|
|
17
|
+
height: 32px;
|
|
18
|
+
}
|
|
19
|
+
.c--terraform-a--medium {
|
|
20
|
+
width: 64px;
|
|
21
|
+
height: 64px;
|
|
22
|
+
}
|
|
23
|
+
.c--terraform-a--large {
|
|
24
|
+
width: 128px;
|
|
25
|
+
height: 128px;
|
|
26
|
+
}
|
|
27
|
+
.c--terraform-trio-a {
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
gap: $measure * 2;
|
|
31
|
+
}
|
|
@@ -57,6 +57,25 @@ $eases: (
|
|
|
57
57
|
from { opacity: 0; transform: translateY(1rem); }
|
|
58
58
|
to { opacity: 1; transform: none; }
|
|
59
59
|
}
|
|
60
|
+
@keyframes u-scale-in {
|
|
61
|
+
from { opacity: 0; transform: scale(0.92); }
|
|
62
|
+
to { opacity: 1; transform: none; }
|
|
63
|
+
}
|
|
64
|
+
@keyframes u-slide-left {
|
|
65
|
+
from { opacity: 0; transform: translateX(-1.5rem); }
|
|
66
|
+
to { opacity: 1; transform: none; }
|
|
67
|
+
}
|
|
68
|
+
@keyframes u-shake {
|
|
69
|
+
0%, 100% { transform: none; }
|
|
70
|
+
20% { transform: translateX(-6px); }
|
|
71
|
+
40% { transform: translateX(6px); }
|
|
72
|
+
60% { transform: translateX(-4px); }
|
|
73
|
+
80% { transform: translateX(4px); }
|
|
74
|
+
}
|
|
75
|
+
@keyframes u-shimmer {
|
|
76
|
+
from { background-position: 200% 0; }
|
|
77
|
+
to { background-position: -200% 0; }
|
|
78
|
+
}
|
|
60
79
|
@keyframes u-spin {
|
|
61
80
|
to { transform: rotate(360deg); }
|
|
62
81
|
}
|
|
@@ -77,12 +96,32 @@ $eases: (
|
|
|
77
96
|
animation: u-pulse 2s $ease-standard-a infinite;
|
|
78
97
|
}
|
|
79
98
|
|
|
99
|
+
.u--animation-scale-in {
|
|
100
|
+
animation: u-scale-in $time-b $ease-entrance-a both;
|
|
101
|
+
}
|
|
102
|
+
.u--animation-slide-left {
|
|
103
|
+
animation: u-slide-left $time-b $ease-entrance-a both;
|
|
104
|
+
}
|
|
105
|
+
.u--animation-shake {
|
|
106
|
+
animation: u-shake 0.4s $ease-standard-a both;
|
|
107
|
+
}
|
|
108
|
+
// Loading placeholder: give it a height and it sweeps a light band across.
|
|
109
|
+
.u--animation-shimmer {
|
|
110
|
+
background: linear-gradient(90deg, rgb(15 15 15 / 0.06) 25%, rgb(15 15 15 / 0.14) 50%, rgb(15 15 15 / 0.06) 75%);
|
|
111
|
+
background-size: 200% 100%;
|
|
112
|
+
animation: u-shimmer 1.6s linear infinite;
|
|
113
|
+
}
|
|
114
|
+
|
|
80
115
|
// All of them respect prefers-reduced-motion.
|
|
81
116
|
@media (prefers-reduced-motion: reduce) {
|
|
82
117
|
.u--animation-fade-in,
|
|
83
118
|
.u--animation-fade-up,
|
|
84
119
|
.u--animation-spin,
|
|
85
|
-
.u--animation-pulse
|
|
120
|
+
.u--animation-pulse,
|
|
121
|
+
.u--animation-scale-in,
|
|
122
|
+
.u--animation-slide-left,
|
|
123
|
+
.u--animation-shake,
|
|
124
|
+
.u--animation-shimmer {
|
|
86
125
|
animation: none;
|
|
87
126
|
}
|
|
88
127
|
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
@use "@scss/framework/_var/_vars.scss" as *;
|
|
2
2
|
|
|
3
|
-
$order-values: (
|
|
4
|
-
first,
|
|
5
|
-
1,
|
|
6
|
-
);
|
|
3
|
+
$order-values: (first, last, none, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
|
|
7
4
|
|
|
8
5
|
$order-breakpoints: (
|
|
9
6
|
all: $all,
|
|
@@ -18,7 +15,14 @@ $order-breakpoints: (
|
|
|
18
15
|
@mixin order-utility($order-values, $breakpoints) {
|
|
19
16
|
@each $breakpoint-name, $breakpoint-value in $breakpoints {
|
|
20
17
|
@each $value in $order-values {
|
|
21
|
-
$order:
|
|
18
|
+
$order: $value;
|
|
19
|
+
@if $value == first {
|
|
20
|
+
$order: -1;
|
|
21
|
+
} @else if $value == last {
|
|
22
|
+
$order: 9999;
|
|
23
|
+
} @else if $value == none {
|
|
24
|
+
$order: 0;
|
|
25
|
+
}
|
|
22
26
|
|
|
23
27
|
$class-name: if($breakpoint-name == all, "", "-#{$breakpoint-name}");
|
|
24
28
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Decoration of text. The underline sits a little away from the letters so it does not cut the descenders.
|
|
2
|
+
.u--text-decoration-underline {
|
|
3
|
+
text-decoration: underline;
|
|
4
|
+
text-underline-offset: 3px;
|
|
5
|
+
}
|
|
6
|
+
.u--text-decoration-line-through {
|
|
7
|
+
text-decoration: line-through;
|
|
8
|
+
}
|
|
9
|
+
.u--text-decoration-none {
|
|
10
|
+
text-decoration: none;
|
|
11
|
+
}
|
package/src/scss/index.scss
CHANGED
package/dist/design-system.js
DELETED