diff --git a/components/blocks/iconHeader.js b/components/blocks/iconHeader.js index 16f8a7530..0a8d41759 100644 --- a/components/blocks/iconHeader.js +++ b/components/blocks/iconHeader.js @@ -6,34 +6,44 @@ const IconHeader = ({ icon, rotate, title, background, color }) => { return (
{icon} -

+

{title}

); }; +const BG_CLASS = { + "red-70": styles.RedBackground, + "orange-70": styles.OrangeBackground, + "yellow-70": styles.YellowBackground, + "green-70": styles.GreenBackground, + "acqua-70": styles.AcquaBackground, + "lightBlue-70": styles.LightBlueBackground, + "darkBlue-70": styles.DarkBlueBackground, + "indigo-70": styles.IndigoBackground, + "gray-70": styles.GrayBackground, + unset: styles.TransparentBackground, +}; + +const FG_CLASS = { + "red-70": styles.RedForeground, + "orange-70": styles.OrangeForeground, + "yellow-70": styles.YellowForeground, + "green-70": styles.GreenForeground, + "acqua-70": styles.AcquaForeground, + "lightBlue-70": styles.LightBlueForeground, + "darkBlue-70": styles.DarkBlueForeground, + "indigo-70": styles.IndigoForeground, + "gray-70": styles.GrayForeground, + unset: styles.TransparentForeground, +}; + export default IconHeader; diff --git a/components/blocks/iconHeader.module.css b/components/blocks/iconHeader.module.css index e2f53ff5c..38ace3bbf 100644 --- a/components/blocks/iconHeader.module.css +++ b/components/blocks/iconHeader.module.css @@ -12,30 +12,70 @@ } /* Color modifiers */ -.VioletBackground { - @apply bg-indigo-70; +.RedBackground { + @apply bg-red-70; } .OrangeBackground { @apply bg-orange-70; } +.YellowBackground { + @apply bg-yellow-70; +} + +.GreenBackground { + @apply bg-green-70; +} + +.AcquaBackground { + @apply bg-acqua-70; +} + .LightBlueBackground { @apply bg-lightBlue-70; } -.VioletText { - @apply text-indigo-70 !important; +.DarkBlueBackground { + @apply bg-darkBlue-70; +} + +.IndigoBackground { + @apply bg-indigo-70; +} + +.RedForeground { + @apply text-red-70 !important; } -.OrangeText { +.OrangeForeground { @apply text-orange-70 !important; } -.LightBlueText { +.YellowForeground { + @apply text-yellow-70 !important; +} + +.GreenForeground { + @apply text-green-70 !important; +} + +.AcquaForeground { + @apply text-acqua-70 !important; +} + +.LightBlueForeground { @apply text-lightBlue-70 !important; } -:global(.dark) .VioletText { +.DarkBlueForeground { + @apply text-darkBlue-70 !important; +} + +.IndigoForeground { + @apply text-indigo-70 !important; +} + +:global(.dark) .IndigoText { @apply text-white !important; } diff --git a/components/blocks/note.js b/components/blocks/note.js index d68c363e7..5421ecb77 100644 --- a/components/blocks/note.js +++ b/components/blocks/note.js @@ -13,7 +13,7 @@ const Note = ({ children }) => { icon="push_pin" rotate="45" title="Note" - background="l-blue-70" + background="lightBlue-70" color="white" /> {children} diff --git a/components/blocks/tip.js b/components/blocks/tip.js index d1bcaebff..3a3e43d3e 100644 --- a/components/blocks/tip.js +++ b/components/blocks/tip.js @@ -13,7 +13,7 @@ const Tip = ({ children }) => { icon="star" rotate="0" title="Tip" - background="violet-70" + background="indigo-70" color="white" /> {children} diff --git a/content/index.md b/content/index.md index 59a2007be..259e991dc 100644 --- a/content/index.md +++ b/content/index.md @@ -3,7 +3,7 @@ title: Welcome to Streamlit features: - title: Get started body: Lorem ipsum dolor sit amet, consectetur adipiscing elit. - color: violet-70 + color: indigo-70 icon: arrow_forward url: /get-started image: "" @@ -17,7 +17,7 @@ features: - title: Topic guides body: Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia. - color: l-blue-70 + color: lightBlue-70 icon: description url: Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, diff --git a/content/streamlit-cloud/get-started/index.md b/content/streamlit-cloud/get-started/index.md index 9ef19f1f9..5654c5453 100644 --- a/content/streamlit-cloud/get-started/index.md +++ b/content/streamlit-cloud/get-started/index.md @@ -15,18 +15,21 @@ First things first, you need to create your Streamlit Community Cloud account to title="Quickstart" text="Create your account and deploy an example app as fast as possible. Jump right into coding with GitHub Codespaces." link="/streamlit-community-cloud/get-started" + background="lightBlue-70" /> diff --git a/content/streamlit-cloud/index.md b/content/streamlit-cloud/index.md index 462d56f1c..f6df7d405 100644 --- a/content/streamlit-cloud/index.md +++ b/content/streamlit-cloud/index.md @@ -13,42 +13,42 @@ If you haven't built your first Streamlit app yet, you can check out [Get starte Create your account and deploy an example app as fast as possible. Jump right into coding with GitHub Codespaces. Learn about Streamlit Community Cloud accounts and how to create one. A step-by-step guide on how to get your app deployed. Share or embed your app. Access logs, reboot apps, set favorites, and more. Jump into a GitHub Codespace to edit your app in the cloud. - +

For this guide we’re using small amounts of data so that we can move quickly. You can check out our Tutorial{" "} @@ -166,9 +162,9 @@ ls -l myscript.sh`}

Did you know you can also pass a URL to streamlit run? This is @@ -217,7 +213,7 @@ https://raw.githubusercontent.com/streamlit/demo-uber-nyc-pickups/master/streaml