How do I set the CSS for my extension to the current theme of the replit editor?

I’ve been making an extension and I can’t figure out how to set the tool window to be matching with the rest of the editor. Anyone know how?(I’m using React)

2 Likes

Try looking at this for react: https://docs.replit.com/extensions/react/hooks/useTheme

2 Likes

The useThemeValues hook is the one for fetching all of the base tokens in React.

https://docs.replit.com/extensions/react/hooks/useThemeValues

1 Like