Skip to content

Commit 52c699d

Browse files
Complete removal of styling constants from constants.py
- Remove FONT_FAMILY, DOC_BORDER_RADIUS, and PRICING_TABLE_STYLES from constants.py - Update templates/docpage/blocks/code.py to use DOC_BORDER_RADIUS from styles module - Ensure styles.py properly defines DOC_BORDER_RADIUS locally - All styling constants now properly separated from main constants file Co-Authored-By: Alek <[email protected]>
1 parent a3f5cc9 commit 52c699d

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed

pcweb/constants.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,7 @@
8787
CONTRIBUTION_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22"
8888
BUGS_URL = "https://github.com/reflex-dev/reflex/issues?q=is%3Aopen+is%3Aissue"
8989

90-
FONT_FAMILY = "Instrument Sans"
91-
DOC_BORDER_RADIUS = "6px"
92-
9390
SPLINE_SCENE_URL = "https://prod.spline.design/Br2ec3WwuRGxEuij/scene.splinecode"
9491

9592
REFLEX_DOMAIN_URL = "https://reflex.dev/"
9693
TWITTER_CREATOR = "@getreflex"
97-
98-
PRICING_TABLE_STYLES = {
99-
"cell": "text-slate-12 font-medium text-sm whitespace-nowrap",
100-
"header_cell": "text-slate-12 font-semibold text-lg",
101-
"header_cell_sub": "text-slate-11 font-semibold text-md",
102-
"feature_cell": "text-slate-9 font-medium text-sm whitespace-nowrap",
103-
"button_base": "!text-sm !font-semibold w-full text-nowrap",
104-
}

pcweb/styles/styles.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from pcweb.styles.colors import c_color
44
import pcweb.styles.fonts as fonts
5-
from pcweb.constants import FONT_FAMILY, DOC_BORDER_RADIUS
65

76
import reflex as rx
87

@@ -42,9 +41,11 @@ def get_code_style_rdx(color: str):
4241

4342

4443
# General styles.
45-
SANS = FONT_FAMILY
44+
SANS = "Instrument Sans"
4645
BOLD_WEIGHT = font_weights["bold"]
4746

47+
DOC_BORDER_RADIUS = "6px"
48+
4849
# The base application style.
4950
BASE_STYLE = {
5051
"background_color": "var(--c-slate-1)",

pcweb/templates/docpage/blocks/code.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import reflex as rx
44
from pcweb import styles
55
import pcweb.styles.fonts as fonts
6-
from pcweb.constants import DOC_BORDER_RADIUS
76

87

98
@rx.memo
@@ -60,7 +59,7 @@ def doccmdoutput(
6059
rx._x.code_block(
6160
command,
6261
can_copy=True,
63-
border_radius=DOC_BORDER_RADIUS,
62+
border_radius=styles.DOC_BORDER_RADIUS,
6463
background="transparent",
6564
theme="ayu-dark",
6665
language="bash",

0 commit comments

Comments
 (0)