1. Registry
  2. Packages
  3. Descope Provider
  4. API Docs
  5. Styles
Viewing docs for Descope v1.0.1
published on Sunday, Oct 11, 2026 by Descope
descope logo Descope
Viewing docs for Descope v1.0.1
published on Sunday, Oct 11, 2026 by Descope

    Manages the styles (theme) of the project’s flow pages via the exported theme JSON representation.

    Create Styles Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Styles(name: string, args: StylesArgs, opts?: CustomResourceOptions);
    @overload
    def Styles(resource_name: str,
               args: StylesArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Styles(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               data: Optional[str] = None,
               project_id: Optional[str] = None)
    func NewStyles(ctx *Context, name string, args StylesArgs, opts ...ResourceOption) (*Styles, error)
    public Styles(string name, StylesArgs args, CustomResourceOptions? opts = null)
    public Styles(String name, StylesArgs args)
    public Styles(String name, StylesArgs args, CustomResourceOptions options)
    
    type: descope:Styles
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "descope_styles" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args StylesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args StylesArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args StylesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StylesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StylesArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var stylesResource = new Descope.Styles("stylesResource", new()
    {
        Data = "string",
        ProjectId = "string",
    });
    
    example, err := descope.NewStyles(ctx, "stylesResource", &descope.StylesArgs{
    	Data:      pulumi.String("string"),
    	ProjectId: pulumi.String("string"),
    })
    
    resource "descope_styles" "stylesResource" {
      lifecycle {
        create_before_destroy = true
      }
      data       = "string"
      project_id = "string"
    }
    
    var stylesResource = new Styles("stylesResource", StylesArgs.builder()
        .data("string")
        .projectId("string")
        .build());
    
    styles_resource = descope.Styles("stylesResource",
        data="string",
        project_id="string")
    
    const stylesResource = new descope.Styles("stylesResource", {
        data: "string",
        projectId: "string",
    });
    
    type: descope:Styles
    properties:
        data: string
        projectId: string
    

    Styles Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Styles resource accepts the following input properties:

    Data string
    The JSON data of the styles in their exported theme representation, defining the visual styling of the project's flow pages. This will usually be exported as a .json file from the Descope console, and set in the .tf file using the data = file("...") syntax.
    ProjectId string
    The ID of the project that the styles belong to. Changing this value will require the resource to be deleted and recreated.
    Data string
    The JSON data of the styles in their exported theme representation, defining the visual styling of the project's flow pages. This will usually be exported as a .json file from the Descope console, and set in the .tf file using the data = file("...") syntax.
    ProjectId string
    The ID of the project that the styles belong to. Changing this value will require the resource to be deleted and recreated.
    data string
    The JSON data of the styles in their exported theme representation, defining the visual styling of the project's flow pages. This will usually be exported as a .json file from the Descope console, and set in the .tf file using the data = file("...") syntax.
    project_id string
    The ID of the project that the styles belong to. Changing this value will require the resource to be deleted and recreated.
    data String
    The JSON data of the styles in their exported theme representation, defining the visual styling of the project's flow pages. This will usually be exported as a .json file from the Descope console, and set in the .tf file using the data = file("...") syntax.
    projectId String
    The ID of the project that the styles belong to. Changing this value will require the resource to be deleted and recreated.
    data string
    The JSON data of the styles in their exported theme representation, defining the visual styling of the project's flow pages. This will usually be exported as a .json file from the Descope console, and set in the .tf file using the data = file("...") syntax.
    projectId string
    The ID of the project that the styles belong to. Changing this value will require the resource to be deleted and recreated.
    data str
    The JSON data of the styles in their exported theme representation, defining the visual styling of the project's flow pages. This will usually be exported as a .json file from the Descope console, and set in the .tf file using the data = file("...") syntax.
    project_id str
    The ID of the project that the styles belong to. Changing this value will require the resource to be deleted and recreated.
    data String
    The JSON data of the styles in their exported theme representation, defining the visual styling of the project's flow pages. This will usually be exported as a .json file from the Descope console, and set in the .tf file using the data = file("...") syntax.
    projectId String
    The ID of the project that the styles belong to. Changing this value will require the resource to be deleted and recreated.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Styles resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Styles Resource

    Get an existing Styles resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: StylesState, opts?: CustomResourceOptions): Styles
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            data: Optional[str] = None,
            project_id: Optional[str] = None) -> Styles
    func GetStyles(ctx *Context, name string, id IDInput, state *StylesState, opts ...ResourceOption) (*Styles, error)
    public static Styles Get(string name, Input<string> id, StylesState? state, CustomResourceOptions? opts = null)
    public static Styles get(String name, Output<String> id, StylesState state, CustomResourceOptions options)
    resources:  existingStyles:    type: descope:Styles    get:      id: ${id}
    import {
      to = descope_styles.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    state StylesState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state StylesState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    state StylesState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    state StylesState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    options CustomResourceOptions
    Bag of options to control resource's behavior.
    The following state arguments are supported:
    Data string
    The JSON data of the styles in their exported theme representation, defining the visual styling of the project's flow pages. This will usually be exported as a .json file from the Descope console, and set in the .tf file using the data = file("...") syntax.
    ProjectId string
    The ID of the project that the styles belong to. Changing this value will require the resource to be deleted and recreated.
    Data string
    The JSON data of the styles in their exported theme representation, defining the visual styling of the project's flow pages. This will usually be exported as a .json file from the Descope console, and set in the .tf file using the data = file("...") syntax.
    ProjectId string
    The ID of the project that the styles belong to. Changing this value will require the resource to be deleted and recreated.
    data string
    The JSON data of the styles in their exported theme representation, defining the visual styling of the project's flow pages. This will usually be exported as a .json file from the Descope console, and set in the .tf file using the data = file("...") syntax.
    project_id string
    The ID of the project that the styles belong to. Changing this value will require the resource to be deleted and recreated.
    data String
    The JSON data of the styles in their exported theme representation, defining the visual styling of the project's flow pages. This will usually be exported as a .json file from the Descope console, and set in the .tf file using the data = file("...") syntax.
    projectId String
    The ID of the project that the styles belong to. Changing this value will require the resource to be deleted and recreated.
    data string
    The JSON data of the styles in their exported theme representation, defining the visual styling of the project's flow pages. This will usually be exported as a .json file from the Descope console, and set in the .tf file using the data = file("...") syntax.
    projectId string
    The ID of the project that the styles belong to. Changing this value will require the resource to be deleted and recreated.
    data str
    The JSON data of the styles in their exported theme representation, defining the visual styling of the project's flow pages. This will usually be exported as a .json file from the Descope console, and set in the .tf file using the data = file("...") syntax.
    project_id str
    The ID of the project that the styles belong to. Changing this value will require the resource to be deleted and recreated.
    data String
    The JSON data of the styles in their exported theme representation, defining the visual styling of the project's flow pages. This will usually be exported as a .json file from the Descope console, and set in the .tf file using the data = file("...") syntax.
    projectId String
    The ID of the project that the styles belong to. Changing this value will require the resource to be deleted and recreated.

    Package Details

    Repository
    descope descope/pulumi-descope
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the descope Terraform Provider.
    descope logo Descope
    Viewing docs for Descope v1.0.1
    published on Sunday, Oct 11, 2026 by Descope

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial