Skip to content

Conversation

@vdonato
Copy link
Collaborator

@vdonato vdonato commented Mar 23, 2021

The referenced GitHub issue points out that we don't have any examples
for how to actually use the CSS vars that we provide to custom
components. We actually have a snippet about this in our theming launch
blog post, so this commit just adds that bit here verbatim.

Additionally, this adds a note about the minimum supported
streamlit-component-lib version for theming compatibility. This feels a
bit weird to have to do since our docs are versioned, but I think it's
needed in this case since the streamlit-component-lib package version is
decoupled from the PyPI package version that the docs are tied to.

Fixes #2996

The referenced GitHub issue points out that we don't have any examples
for how to actually use the CSS vars that we provide to custom
components. We actually have a snippet about this in our theming launch
blog post, so this commit just adds that bit here verbatim.

Additionally, this adds a note about the minimum supported
streamlit-component-lib version for theming compatibility. This feels a
bit weird to have to do since our docs are versioned, but I think it's
needed in this case since the streamlit-component-lib package version is
decoupled from the PyPI package version that the docs are tied to.

Fixes streamlit#2996
@vdonato vdonato merged commit a109a07 into streamlit:develop Mar 24, 2021
@vdonato vdonato deleted the component-theme-docs branch March 24, 2021 04:56
tconkling added a commit that referenced this pull request Mar 24, 2021
# By Vincent Donato (3) and Nikitas Rontsis (1)
# Via GitHub
* develop:
  Have theme hashes differentiate between being unset and the hash for null (#2993)
  Improve module reloading (#3001)
  Add tests to improve coverage around config options set via flag (#2991)
  Add snippets about CSS vars and minimum streamlit-component-lib versions (#3008)

# Conflicts:
#	frontend/src/App.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom Component themes

2 participants