GitHub user dosubot[bot] added a comment to the discussion: Facing issues with superset theme after ui overhaul
<!-- Answer --> In Superset 6.0.0, the default padding and spacing throughout the UI are based on the sizeUnit token, which is set to 4 (interpreted as 4px). Padding values in components are typically multiples of sizeUnit, for example, padding: sizeUnit * 4 (which is 16px by default). There are also tokens like paddingLG, paddingSM, etc., but unless explicitly overridden, their values are derived from Ant Design v5's defaults and use sizeUnit as the base unit. You can access these values at runtime via the theme context (e.g., useTheme or supersetTheme in @superset-ui/core) [reference](https://github.com/apache/superset/issues/36878#issuecomment-3705727562) [reference](https://github.com/apache/superset/pull/34253). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/733fc266-ca1e-4d19-b183-0e5a60015882?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/733fc266-ca1e-4d19-b183-0e5a60015882?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/733fc266-ca1e-4d19-b183-0e5a60015882?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/733fc266-ca1e-4d19-b183-0e5a60015882?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/733fc266-ca1e-4d19-b183-0e5a60015882?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/733fc266-ca1e-4d19-b183-0e5a60015882?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/733fc266-ca1e-4d19-b183-0e5a60015882?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=In%20Superset%206.0.0%2C%20the%20default%20padding%20and%20spacing%20throughout%20the%20UI%20are%20based%20on%20the%20sizeUnit%20token%2C%20which%20is%20set%20to%204%20%28interpreted%20as%204px%29.%20Padding%20values%20in%20components%20are%20typically%20multiples%20of%20sizeUnit%2C%20for%20example%2C%20padding%3A%20sizeUnit%20%2A%204%20%28which%20is%2016px%20by%20default%29.%20There%20are%20also%20tokens%20like%20paddingLG%2C%20paddingSM%2C%20etc.%2C%20but%20unless%20explicitly%20overridden%2C%20their%20values%20are%20derived%20from%20Ant%20Design%20v5%27s%20defaults%20and%20use%20sizeUnit%20as%20the%20base%20unit.%20You%20can%20access%20these%20values%20at%20runtime%20via%20the%20theme%20context%20%28e.g.%2C%20useTheme%20or%20supersetTheme%20in%20%4 0superset-ui/core%29%C2%A0%5Breference%5D%28https%3A//github.com/apache/superset/issues/36878%23issuecomment-3705727562%29%C2%A0%5Breference%5D%28https%3A//github.com/apache/superset/pull/34253%29.) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/37889) GitHub link: https://github.com/apache/superset/discussions/37889#discussioncomment-15768308 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
