# US 2023/0066832 A1 · Scoped containers using css custom properties and color pairs

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0066832 A1
- Document ID: US20230066832A1
- Status: Published application
- Kind: A1
- Application number: 18/047,853
- Filed: 2022-10-19
- Published: 2023-03-02
- Earliest claimed: 2021-05-13
- Assignees: salesforce.com, inc.
- Applicants: salesforce.com, inc.
- Inventors: Kyung Jin Kim; Shelby Hubick; Bret Little; Andrew Peterson
- Web page: https://patentgrep.com/patent/US20230066832A1

## CPC

- G06F 40/117: Tagging; Marking up (details of markup languages G06F40/143); Designating a block; Setting of attributes (style sheets, e.g. eXtensible Stylesheet Language Transformation [XSLT], G06F40/154)
- G06F 3/0482: Interaction with lists of selectable items, e.g. menus
- G06F 3/04845: for image manipulation, e.g. dragging, rotation, expansion or change of colour
- G06F 8/30: Creation or generation of source code
- G06F 8/38: for implementing user interfaces
- G06F 9/44526: {Plug-ins; Add-ons}
- G06F 9/451: Execution arrangements for user interfaces
- G06F 40/103: Formatting, i.e. changing of presentation of documents (automatic justification G06F40/189; automatic line break hyphenation G06F40/191)
- G06F 40/14: Tree-structured documents (parsing G06F40/205; validation G06F40/226)
- G06T 11/10: Texturing; Colouring; Generation of textures or colours (retouching, inpainting or scratch removal G06T5/77)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A computer-implemented method and corresponding systems and apparatuses for configuring the visual appearance of a webpage. The method involves providing access to color schemes through a user interface of a software application and assigning color schemes to corresponding sections of the webpage based on user input. Each color scheme includes at least one foreground color paired with a corresponding background color that contrasts the foreground color. The method further involves generating source code representing the webpage. In some examples, the source code includes a first container corresponding to a first section and a second container corresponding to a second section. The first container includes properties corresponding to a first color scheme. Similarly, the second container includes properties corresponding to a second color scheme. Because the second section is a subsection of the first section, the source code is generated with the second container being nested within the first container.

## Claims

### Claim 1

A computer-implemented method comprising:
providing, by a computer system, access to a first color scheme and a second color scheme through a user interface of a software application, wherein the first color scheme and the second color scheme each include a foreground color paired with a background color that contrasts the foreground color, and wherein at least one of the foreground color of the first color scheme or the background color of the first color scheme differs from that of the second color scheme;
assigning, by the computer system, the first color scheme to a first section of a webpage based on input at the user interface;
assigning, by the computer system, the second color scheme to a second section of the webpage based on further input at the user interface, wherein the second section is to be displayed as a subsection of the first section; and
generating, by the computer system after assigning the first color scheme and the second color scheme, source code representing the webpage, wherein due to the second section being a subsection of the first section, the source code includes a first container corresponding to the first section and a second container nested within the first container, the first container comprising properties corresponding to the first color scheme, and the second container comprising properties corresponding to the second color scheme.

### Claim 2 (depends on 1)

The method of claim 1, wherein the properties corresponding to the first color scheme and the properties corresponding to the second color scheme are Cascading Style Sheets (CSS) custom properties.

### Claim 3 (depends on 1)

The method of claim 1, wherein the properties corresponding to the second color scheme comprise a property inherited from the first color scheme.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
generating, by the computer system, multiple color pairings for the first container or the second container, each color pairing including a corresponding foreground color and a contrasting background color, wherein the multiple color pairings comprise:
a first color pairing having user-specified colors; and
a second color pairing having system-generated colors.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
determining, by the computer system, a shade of a color in the second color pairing based on a shade of a color in the first color pairing.

### Claim 6 (depends on 4)

The method of claim 4, wherein the second color pairing comprises a background color that contrasts a background color of the first color pairing.

### Claim 7 (depends on 4)

The method of claim 4, further comprising:
updating, by the computer system, the second color pairing in response to a change in the first color pairing.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
storing, by the computer system, the first color scheme and the second color scheme as metadata associated with the webpage, wherein the metadata comprises a corresponding key-value pair for each color, and wherein the generating of the source code comprises converting the metadata into the source code.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
adding, by the computer system, a plugin component to the first section or the second section based on user input indicating a location on the webpage where the plugin component is to be placed, wherein the plugin component was created separately from the webpage, and wherein the plugin component is configured to adopt whichever color scheme is assigned to the section that the plugin component is added to.

### Claim 10

A system comprising:
one or more processors; and
memory storing instructions that, when executed, cause the one or more processors to:
provide access to a first color scheme and a second color scheme through a user interface of a software application, wherein the first color scheme and the second color scheme each include a foreground color paired with a background color that contrasts the foreground color, and wherein at least one of the foreground color of the first color scheme or the background color of the first color scheme differs from that of the second color scheme;
assign the first color scheme to a first section of a webpage based on input at the user interface;
assign the second color scheme to a second section of the webpage based on further input at the user interface, wherein the second section is to be displayed as a subsection of the first section; and
generate, after assigning the first color scheme and the second color scheme, source code representing the webpage, wherein due to the second section being a subsection of the first section, the source code includes a first container corresponding to the first section and a second container nested within the first container, the first container comprising properties corresponding to the first color scheme, and the second container comprising properties corresponding to the second color scheme.

### Claim 11 (depends on 10)

The system of claim 10, wherein the properties corresponding to the first color scheme and the properties corresponding to the second color scheme are Cascading Style Sheets (CSS) custom properties.

### Claim 12 (depends on 10)

The system of claim 10, wherein the properties corresponding to the second color scheme comprise a property inherited from the first color scheme.

### Claim 13 (depends on 10)

The system of claim 10, wherein the instructions, when executed, further cause the one or more processors to:
generate multiple color pairings for the first container or the second container, each color pairing including a corresponding foreground color and a contrasting background color, wherein the multiple color pairings comprise:
a first color pairing having user-specified colors; and
a second color pairing having system-generated colors.

### Claim 14 (depends on 13)

The system of claim 13, wherein the instructions, when executed, further cause the one or more processors to:
determine a shade of a color in the second color pairing based on a shade of a color in the first color pairing.

### Claim 15 (depends on 13)

The system of claim 13, wherein the second color pairing comprises a background color that contrasts a background color of the first color pairing.

### Claim 16 (depends on 13)

The system of claim 13, wherein the instructions, when executed, further cause the one or more processors to:
update the second color pairing in response to a change in the first color pairing.

### Claim 17 (depends on 13)

The system of claim 13, wherein the multiple color pairings are generated for the first container, and wherein the second container is configured to inherit the second color pairing from the first container.

### Claim 18 (depends on 10)

The system of claim 10, wherein the instructions, when executed, further cause the one or more processors to:
store the first color scheme and the second color scheme as metadata associated with the webpage, wherein the metadata comprises a corresponding key-value pair for each color, and wherein the one or more processors are configured to convert the metadata into the source code.

### Claim 19 (depends on 10)

The system of claim 10, wherein the instructions, when executed, further cause the one or more processors to:
add a plugin component to the first section or the second section based on user input indicating a location on the webpage where the plugin component is to be placed, wherein the plugin component was created separately from the webpage, and wherein the plugin component is configured to adopt whichever color scheme is assigned to the section that the plugin component is added to.

### Claim 20

A non-transitory computer-readable medium storing program code, the program code including instructions that are executable by one or more processors of a computer system to:
provide access to a first color scheme and a second color scheme through a user interface of a software application, wherein the first color scheme and the second color scheme each include a foreground color paired with a background color that contrasts the foreground color, and wherein at least one of the foreground color of the first color scheme or the background color of the first color scheme differs from that of the second color scheme;
assign the first color scheme to a first section of a webpage based on input at the user interface;
assign the second color scheme to a second section of the webpage based on further input at the user interface, wherein the second section is to be displayed as a subsection of the first section; and
generate, after assigning the first color scheme and the second color scheme, source code representing the webpage, wherein due to the second section being a subsection of the first section, the source code includes a first container corresponding to the first section and a second container nested within the first container, the first container comprising properties corresponding to the first color scheme, and the second container comprising properties corresponding to the second color scheme.
