---
name: create-post-styles-pending-nusrat
description: Nusrat owes real per-key values for create-post-page; reference JSON pre-generated from Figma
metadata:
  type: project
---

# create-post-page server style values are pending Nusrat

The create-post-page (slug `create-post-page`) ships every styles[*] key as **placeholder defaults** today (Lato 24pt bold black, letter_spacing 1.5, ellipsis; box_decoration margin/padding 4 with white-on-white border; `avatar_decoration.width/height: '0.3'`; `text_decoration.text_decoration: 'lineThrough'`).

**Why:** The two cards (`FCommunity_UserAvatar`, `FCommunity_PostInformation`) were wired to `parseTextStyle / parseBoxDecoration / parseImageDecoration` against the styles map as of commit `968ea13`. Visuals currently regressed to those placeholder values — intentional, not a bug. Nusrat needs to populate real values via the WordPress admin form for the page to look right.

**How to apply:**

- A pre-generated reference JSON for both class_types lives in the workflow described at [[figma-styles-workflow]]. Generated from the create-post Figma frame (file `MtDxxWCRgzanTKcV6qG6Nu`, node `1412:2600`). Output at `/tmp/create_post_styles_for_nusrat.json` (regenerate with `python3 /tmp/build_create_post_styles.py`).
- Send Nusrat the JSON + a checklist:
  1. Replace placeholder values key-by-key in the WordPress dashboard
  2. Fix `avatar_decoration.width/height` from `'0.3'` to `'40'` (or whatever pixel value)
  3. Fix `text_decoration.text_decoration` from `'lineThrough'` to `'none'` — affects this page plus course/login pages that share the key
  4. Add `icon_decoration` and `button_decoration` to `FCommunity_UserAvatar` schema (pinned in Figma on calendar/eye buttons but not yet exposed in the server response)
- The Topic row decoration is NOT pinned in Figma (the row only appears at runtime when the space has topics, not in the static mockup). Client currently infers `secondary_text_decoration` by analogy with sibling "Posting in:" label. If Nusrat wants a different key, she needs to add a Topic mockup + pin first.
- Client-side sanity guards in place: `_Avatar` widget (`user_avatar_card_views/design_1/vertical.dart`) falls back to width/height 40 when server value < 1, so the 0.3-px bug doesn't make the avatar invisible.

**Owner:** Nusrat Jahan (server-side dashboard). Flag in next standup.

**Verification when shipped:** hot-restart create-post screen — all text should render at appropriate weights/sizes/colors, card should have visible border + 16px margin, avatar should be 40×40 circular gray, footer icons should be 20px dark gray.
